173 {
186 {
187 int num = *(
int*)
ptr;
189 switch (num)
190 {
191 case 1:
192 {
198 break;
199 }
200 case 2:
201 {
210 {
212 }
213 try
214 {
215 for (
int i = 0;
i <
num10;
i++)
216 {
217
219 }
226
230 {
231 throw GraphicsHelpers.GetExceptionFromResult((uint)
num11);
232 }
235 }
236 finally
237 {
239 }
240 break;
241 }
242 case 3:
243 {
252 {
253 throw GraphicsHelpers.GetExceptionFromResult((uint)
num17);
254 }
257 break;
258 }
259 case 4:
260 {
269 {
270 throw GraphicsHelpers.GetExceptionFromResult((uint)
num15);
271 }
274 break;
275 }
276 case 5:
277 {
288 int num9 = ((
delegate*
unmanaged[
Stdcall,
Stdcall]<
IntPtr, uint, uint, uint, uint,
_D3DFORMAT,
_D3DPOOL,
IDirect3DTexture9**,
void**,
int>)(
int)(*(uint*)(*(
int*)pComPtr + 92)))((nint)pComPtr, (uint)
num6, (uint)
num7, (uint)
num8, 0
u,
d3DFORMAT2, (
_D3DPOOL)1, &
value,
null);
290 {
291 throw GraphicsHelpers.GetExceptionFromResult((uint)
num9);
292 }
295 break;
296 }
297 case 6:
298 {
303
313 {
314 throw GraphicsHelpers.GetExceptionFromResult((uint)
num32);
315 }
316 int num33 = ((
delegate*
unmanaged[
Stdcall,
Stdcall]<
IntPtr, uint,
_D3DLOCKED_RECT*,
tagRECT*, uint,
int>)(
int)(*(uint*)(*(
int*)
resource_003CIDirect3DTexture9_003E + 76)))((nint)
resource_003CIDirect3DTexture9_003E, (uint)
num30, &
d3DLOCKED_RECT, &
tagRECT, 0
u);
318 {
319 throw GraphicsHelpers.GetExceptionFromResult((uint)
num33);
320 }
323 {
325 }
328 {
330 do
331 {
336 }
338 }
341 {
342 throw GraphicsHelpers.GetExceptionFromResult((uint)
num37);
343 }
344 break;
345 }
346 case 7:
347 {
350 int num29 = *(
int*)pComPtr + 348;
352 break;
353 }
354 case 8:
355 {
358 int num28 = *(
int*)pComPtr + 368;
360 break;
361 }
362 case 9:
363 {
366 int num27 = *(
int*)pComPtr + 428;
368 break;
369 }
370 case 10:
371 {
376 int num26 = *(
int*)pComPtr + 260;
378 break;
379 }
380 case 11:
381 {
387 break;
388 }
389 case 12:
390 {
398 break;
399 }
400 case 13:
401 {
409 break;
410 }
411 case 14:
412 {
420 break;
421 }
422 case 15:
423 {
433 {
435 graphicsDevice._insideScene = true;
436 }
437 ((
delegate*
unmanaged[
Stdcall,
Stdcall]<
IntPtr,
_D3DPRIMITIVETYPE, uint,
void*, uint,
int>)(
int)(*(uint*)(*(
int*)pComPtr + 332)))((nint)pComPtr,
d3DPRIMITIVETYPE2, (uint)
num12,
ptr7, (uint)
num13);
438 break;
439 }
440 case 16:
441 {
459 {
461 graphicsDevice._insideScene = true;
462 }
463 ((
delegate*
unmanaged[
Stdcall,
Stdcall]<
IntPtr,
_D3DPRIMITIVETYPE, uint, uint, uint,
void*,
_D3DFORMAT,
void*, uint,
int>)(
int)(*(uint*)(*(
int*)pComPtr + 336)))((nint)pComPtr,
d3DPRIMITIVETYPE, 0
u, (uint)
num3, (uint)
num2,
ptr3,
d3DFORMAT,
ptr4, (uint)
num5);
464 break;
465 }
466 default:
468 }
469 }
471 {
473 }
474 }
unsafe IDirect3DDevice9 * pComPtr
unsafe IDirect3DVertexDeclaration9 * GetResource_003CIDirect3DVertexDeclaration9_003E(int handle)
Dictionary< int, IntPtr > resourceTable
unsafe IDirect3DVertexShader9 * GetResource_003CIDirect3DVertexShader9_003E(int handle)
unsafe IUnknown * GetResource_003CIUnknown_003E(int handle)
GraphicsDevice graphicsDevice
unsafe IDirect3DTexture9 * GetResource_003CIDirect3DTexture9_003E(int handle)
static int GetVertexCount(_D3DPRIMITIVETYPE primitiveType, int primitiveCount)
unsafe IDirect3DPixelShader9 * GetResource_003CIDirect3DPixelShader9_003E(int handle)
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
void Add(TKey key, TValue value)
static unsafe void CopyBlock(void *destination, void *source, uint byteCount)
static unsafe void CopyBlockUnaligned(void *destination, void *source, uint byteCount)