1 /* 2 * COPYRIGHT: See COPYING in the top level directory 3 * PROJECT: ReactOS ReactX 4 * FILE: dll/directx/d3d9/d3d9_puredevice.c 5 * PURPOSE: d3d9.dll internal device functions 6 * PROGRAMERS: Gregor Gullwi <gbrunmar (dot) ros (at) gmail (dot) com> 7 */ 8 #include "d3d9_puredevice.h" 9 #include <debug.h> 10 11 #define LOCK_D3DDEVICE9() if (This->bLockDevice) EnterCriticalSection(&This->CriticalSection); 12 #define UNLOCK_D3DDEVICE9() if (This->bLockDevice) LeaveCriticalSection(&This->CriticalSection); 13 14 /* Convert a IDirect3D9 pointer safely to the internal implementation struct */ 15 /*static LPD3D9PUREDEVICE IDirect3DDevice9ToImpl(LPDIRECT3DDEVICE9 iface) 16 { 17 if (NULL == iface) 18 return NULL; 19 20 return (LPD3D9PUREDEVICE)((ULONG_PTR)iface - FIELD_OFFSET(D3D9PUREDEVICE, BaseDevice.lpVtbl)); 21 }*/ 22 23 /* IDirect3DDevice9 public interface */ 24 HRESULT WINAPI IDirect3DDevice9Pure_SetRenderTarget(LPDIRECT3DDEVICE9 iface, DWORD RenderTargetIndex, IDirect3DSurface9* pRenderTarget) 25 { 26 UNIMPLEMENTED 27 28 return D3D_OK; 29 } 30 31 HRESULT WINAPI IDirect3DDevice9Pure_GetRenderTarget(LPDIRECT3DDEVICE9 iface, DWORD RenderTargetIndex,IDirect3DSurface9** ppRenderTarget) 32 { 33 UNIMPLEMENTED 34 35 return D3D_OK; 36 } 37 38 HRESULT WINAPI IDirect3DDevice9Pure_SetDepthStencilSurface(LPDIRECT3DDEVICE9 iface, IDirect3DSurface9* pNewZStencil) 39 { 40 UNIMPLEMENTED 41 42 return D3D_OK; 43 } 44 45 HRESULT WINAPI IDirect3DDevice9Pure_GetDepthStencilSurface(LPDIRECT3DDEVICE9 iface, IDirect3DSurface9** ppZStencilSurface) 46 { 47 UNIMPLEMENTED 48 49 return D3D_OK; 50 } 51 52 HRESULT WINAPI IDirect3DDevice9Pure_BeginScene(LPDIRECT3DDEVICE9 iface) 53 { 54 UNIMPLEMENTED 55 56 return D3D_OK; 57 } 58 59 HRESULT WINAPI IDirect3DDevice9Pure_EndScene(LPDIRECT3DDEVICE9 iface) 60 { 61 UNIMPLEMENTED 62 63 return D3D_OK; 64 } 65 66 HRESULT WINAPI IDirect3DDevice9Pure_Clear(LPDIRECT3DDEVICE9 iface, DWORD Count, CONST D3DRECT* pRects, DWORD Flags, D3DCOLOR Color, float Z, DWORD Stencil) 67 { 68 UNIMPLEMENTED 69 70 return D3D_OK; 71 } 72 73 HRESULT WINAPI IDirect3DDevice9Pure_SetTransform(LPDIRECT3DDEVICE9 iface, D3DTRANSFORMSTATETYPE State, CONST D3DMATRIX* pMatrix) 74 { 75 UNIMPLEMENTED 76 77 return D3D_OK; 78 } 79 80 HRESULT WINAPI IDirect3DDevice9Pure_GetTransform(LPDIRECT3DDEVICE9 iface, D3DTRANSFORMSTATETYPE State, D3DMATRIX* pMatrix) 81 { 82 UNIMPLEMENTED 83 84 return D3D_OK; 85 } 86 87 HRESULT WINAPI IDirect3DDevice9Pure_MultiplyTransform(LPDIRECT3DDEVICE9 iface, D3DTRANSFORMSTATETYPE State, CONST D3DMATRIX* pMatrix) 88 { 89 UNIMPLEMENTED 90 91 return D3D_OK; 92 } 93 94 HRESULT WINAPI IDirect3DDevice9Pure_SetViewport(LPDIRECT3DDEVICE9 iface, CONST D3DVIEWPORT9* pViewport) 95 { 96 UNIMPLEMENTED 97 98 return D3D_OK; 99 } 100 101 HRESULT WINAPI IDirect3DDevice9Pure_GetViewport(LPDIRECT3DDEVICE9 iface, D3DVIEWPORT9* pViewport) 102 { 103 UNIMPLEMENTED 104 105 return D3D_OK; 106 } 107 108 HRESULT WINAPI IDirect3DDevice9Pure_SetMaterial(LPDIRECT3DDEVICE9 iface, CONST D3DMATERIAL9* pMaterial) 109 { 110 UNIMPLEMENTED 111 112 return D3D_OK; 113 } 114 115 HRESULT WINAPI IDirect3DDevice9Pure_GetMaterial(LPDIRECT3DDEVICE9 iface, D3DMATERIAL9* pMaterial) 116 { 117 UNIMPLEMENTED 118 119 return D3D_OK; 120 } 121 122 HRESULT WINAPI IDirect3DDevice9Pure_SetLight(LPDIRECT3DDEVICE9 iface, DWORD Index, CONST D3DLIGHT9* pLight) 123 { 124 UNIMPLEMENTED 125 126 return D3D_OK; 127 } 128 129 HRESULT WINAPI IDirect3DDevice9Pure_GetLight(LPDIRECT3DDEVICE9 iface, DWORD Index, D3DLIGHT9* pLight) 130 { 131 UNIMPLEMENTED 132 133 return D3D_OK; 134 } 135 136 HRESULT WINAPI IDirect3DDevice9Pure_LightEnable(LPDIRECT3DDEVICE9 iface, DWORD Index, BOOL Enable) 137 { 138 UNIMPLEMENTED 139 140 return D3D_OK; 141 } 142 143 HRESULT WINAPI IDirect3DDevice9Pure_GetLightEnable(LPDIRECT3DDEVICE9 iface, DWORD Index, BOOL* pEnable) 144 { 145 UNIMPLEMENTED 146 147 return D3D_OK; 148 } 149 150 HRESULT WINAPI IDirect3DDevice9Pure_SetClipPlane(LPDIRECT3DDEVICE9 iface, DWORD Index, CONST float* pPlane) 151 { 152 UNIMPLEMENTED 153 154 return D3D_OK; 155 } 156 157 HRESULT WINAPI IDirect3DDevice9Pure_GetClipPlane(LPDIRECT3DDEVICE9 iface, DWORD Index, float* pPlane) 158 { 159 UNIMPLEMENTED 160 161 return D3D_OK; 162 } 163 164 HRESULT WINAPI IDirect3DDevice9Pure_SetRenderState(LPDIRECT3DDEVICE9 iface, D3DRENDERSTATETYPE State, DWORD Value) 165 { 166 UNIMPLEMENTED 167 168 return D3D_OK; 169 } 170 171 HRESULT WINAPI IDirect3DDevice9Pure_GetRenderState(LPDIRECT3DDEVICE9 iface, D3DRENDERSTATETYPE State, DWORD* pValue) 172 { 173 UNIMPLEMENTED 174 175 return D3D_OK; 176 } 177 178 HRESULT WINAPI IDirect3DDevice9Pure_CreateStateBlock(LPDIRECT3DDEVICE9 iface, D3DSTATEBLOCKTYPE Type, IDirect3DStateBlock9** ppSB) 179 { 180 UNIMPLEMENTED 181 182 return D3D_OK; 183 } 184 185 HRESULT WINAPI IDirect3DDevice9Pure_BeginStateBlock(LPDIRECT3DDEVICE9 iface) 186 { 187 UNIMPLEMENTED 188 189 return D3D_OK; 190 } 191 192 HRESULT WINAPI IDirect3DDevice9Pure_EndStateBlock(LPDIRECT3DDEVICE9 iface, IDirect3DStateBlock9** ppSB) 193 { 194 UNIMPLEMENTED 195 196 return D3D_OK; 197 } 198 199 HRESULT WINAPI IDirect3DDevice9Pure_SetClipStatus(LPDIRECT3DDEVICE9 iface, CONST D3DCLIPSTATUS9* pClipStatus) 200 { 201 UNIMPLEMENTED 202 203 return D3D_OK; 204 } 205 206 HRESULT WINAPI IDirect3DDevice9Pure_GetClipStatus(LPDIRECT3DDEVICE9 iface, D3DCLIPSTATUS9* pClipStatus) 207 { 208 UNIMPLEMENTED 209 210 return D3D_OK; 211 } 212 213 HRESULT WINAPI IDirect3DDevice9Pure_GetTexture(LPDIRECT3DDEVICE9 iface, DWORD Stage, IDirect3DBaseTexture9** ppTexture) 214 { 215 UNIMPLEMENTED 216 217 return D3D_OK; 218 } 219 220 HRESULT WINAPI IDirect3DDevice9Pure_SetTexture(LPDIRECT3DDEVICE9 iface, DWORD Stage, IDirect3DBaseTexture9* pTexture) 221 { 222 UNIMPLEMENTED 223 224 return D3D_OK; 225 } 226 227 HRESULT WINAPI IDirect3DDevice9Pure_GetTextureStageState(LPDIRECT3DDEVICE9 iface, DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD* pValue) 228 { 229 UNIMPLEMENTED 230 231 return D3D_OK; 232 } 233 234 HRESULT WINAPI IDirect3DDevice9Pure_SetTextureStageState(LPDIRECT3DDEVICE9 iface, DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD Value) 235 { 236 UNIMPLEMENTED 237 238 return D3D_OK; 239 } 240 241 HRESULT WINAPI IDirect3DDevice9Pure_GetSamplerState(LPDIRECT3DDEVICE9 iface, DWORD Sampler, D3DSAMPLERSTATETYPE Type, DWORD* pValue) 242 { 243 UNIMPLEMENTED 244 245 return D3D_OK; 246 } 247 248 HRESULT WINAPI IDirect3DDevice9Pure_SetSamplerState(LPDIRECT3DDEVICE9 iface, DWORD Sampler, D3DSAMPLERSTATETYPE Type, DWORD Value) 249 { 250 UNIMPLEMENTED 251 252 return D3D_OK; 253 } 254 255 HRESULT WINAPI IDirect3DDevice9Pure_ValidateDevice(LPDIRECT3DDEVICE9 iface, DWORD* pNumPasses) 256 { 257 UNIMPLEMENTED 258 259 return D3D_OK; 260 } 261 262 HRESULT WINAPI IDirect3DDevice9Pure_SetPaletteEntries(LPDIRECT3DDEVICE9 iface, UINT PaletteNumber, CONST PALETTEENTRY* pEntries) 263 { 264 UNIMPLEMENTED 265 266 return D3D_OK; 267 } 268 269 HRESULT WINAPI IDirect3DDevice9Pure_GetPaletteEntries(LPDIRECT3DDEVICE9 iface, UINT PaletteNumber, PALETTEENTRY* pEntries) 270 { 271 UNIMPLEMENTED 272 273 return D3D_OK; 274 } 275 276 HRESULT WINAPI IDirect3DDevice9Pure_SetCurrentTexturePalette(LPDIRECT3DDEVICE9 iface, UINT PaletteNumber) 277 { 278 UNIMPLEMENTED 279 280 return D3D_OK; 281 } 282 283 HRESULT WINAPI IDirect3DDevice9Pure_GetCurrentTexturePalette(LPDIRECT3DDEVICE9 iface, UINT* pPaletteNumber) 284 { 285 UNIMPLEMENTED 286 287 return D3D_OK; 288 } 289 290 HRESULT WINAPI IDirect3DDevice9Pure_SetScissorRect(LPDIRECT3DDEVICE9 iface, CONST RECT* pRect) 291 { 292 UNIMPLEMENTED 293 294 return D3D_OK; 295 } 296 297 HRESULT WINAPI IDirect3DDevice9Pure_GetScissorRect(LPDIRECT3DDEVICE9 iface, RECT* pRect) 298 { 299 UNIMPLEMENTED 300 301 return D3D_OK; 302 } 303 304 HRESULT WINAPI IDirect3DDevice9Pure_SetSoftwareVertexProcessing(LPDIRECT3DDEVICE9 iface, BOOL bSoftware) 305 { 306 UNIMPLEMENTED 307 308 return D3D_OK; 309 } 310 311 BOOL WINAPI IDirect3DDevice9Pure_GetSoftwareVertexProcessing(LPDIRECT3DDEVICE9 iface) 312 { 313 UNIMPLEMENTED 314 315 return TRUE; 316 } 317 318 HRESULT WINAPI IDirect3DDevice9Pure_SetNPatchMode(LPDIRECT3DDEVICE9 iface, float nSegments) 319 { 320 UNIMPLEMENTED 321 322 return D3D_OK; 323 } 324 325 float WINAPI IDirect3DDevice9Pure_GetNPatchMode(LPDIRECT3DDEVICE9 iface) 326 { 327 UNIMPLEMENTED 328 329 return 0.0f; 330 } 331 332 HRESULT WINAPI IDirect3DDevice9Pure_DrawPrimitive(LPDIRECT3DDEVICE9 iface, D3DPRIMITIVETYPE PrimitiveType, UINT StartVertex, UINT PrimitiveCount) 333 { 334 UNIMPLEMENTED 335 336 return D3D_OK; 337 } 338 339 HRESULT WINAPI IDirect3DDevice9Pure_DrawIndexedPrimitive(LPDIRECT3DDEVICE9 iface, D3DPRIMITIVETYPE PrimitiveType, INT BaseVertexIndex, UINT MinVertexIndex, UINT NumVertices, UINT startIndex, UINT primCount) 340 { 341 UNIMPLEMENTED 342 343 return D3D_OK; 344 } 345 346 HRESULT WINAPI IDirect3DDevice9Pure_DrawPrimitiveUP(LPDIRECT3DDEVICE9 iface, D3DPRIMITIVETYPE PrimitiveType, UINT PrimitiveCount, CONST void* pVertexStreamZeroData, UINT VertexStreamZeroStride) 347 { 348 UNIMPLEMENTED 349 350 return D3D_OK; 351 } 352 353 HRESULT WINAPI IDirect3DDevice9Pure_DrawIndexedPrimitiveUP(LPDIRECT3DDEVICE9 iface, D3DPRIMITIVETYPE PrimitiveType, UINT MinVertexIndex, UINT NumVertices, UINT PrimitiveCount, CONST void* pIndexData, D3DFORMAT IndexDataFormat, CONST void* pVertexStreamZeroData, UINT VertexStreamZeroStride) 354 { 355 UNIMPLEMENTED 356 357 return D3D_OK; 358 } 359 360 HRESULT WINAPI IDirect3DDevice9Pure_ProcessVertices(LPDIRECT3DDEVICE9 iface, UINT SrcStartIndex, UINT DestIndex, UINT VertexCount, IDirect3DVertexBuffer9* pDestBuffer, IDirect3DVertexDeclaration9* pVertexDecl, DWORD Flags) 361 { 362 UNIMPLEMENTED 363 364 return D3D_OK; 365 } 366 367 HRESULT WINAPI IDirect3DDevice9Pure_CreateVertexDeclaration(LPDIRECT3DDEVICE9 iface, CONST D3DVERTEXELEMENT9* pVertexElements, IDirect3DVertexDeclaration9** ppDecl) 368 { 369 UNIMPLEMENTED 370 371 return D3D_OK; 372 } 373 374 HRESULT WINAPI IDirect3DDevice9Pure_SetVertexDeclaration(LPDIRECT3DDEVICE9 iface, IDirect3DVertexDeclaration9* pDecl) 375 { 376 UNIMPLEMENTED 377 378 return D3D_OK; 379 } 380 381 HRESULT WINAPI IDirect3DDevice9Pure_GetVertexDeclaration(LPDIRECT3DDEVICE9 iface, IDirect3DVertexDeclaration9** ppDecl) 382 { 383 UNIMPLEMENTED 384 385 return D3D_OK; 386 } 387 388 HRESULT WINAPI IDirect3DDevice9Pure_SetFVF(LPDIRECT3DDEVICE9 iface, DWORD FVF) 389 { 390 UNIMPLEMENTED 391 392 return D3D_OK; 393 } 394 395 HRESULT WINAPI IDirect3DDevice9Pure_GetFVF(LPDIRECT3DDEVICE9 iface, DWORD* pFVF) 396 { 397 UNIMPLEMENTED 398 399 return D3D_OK; 400 } 401 402 HRESULT WINAPI IDirect3DDevice9Pure_CreateVertexShader(LPDIRECT3DDEVICE9 iface, CONST DWORD* pFunction, IDirect3DVertexShader9** ppShader) 403 { 404 UNIMPLEMENTED 405 406 return D3D_OK; 407 } 408 409 HRESULT WINAPI IDirect3DDevice9Pure_SetVertexShader(LPDIRECT3DDEVICE9 iface, IDirect3DVertexShader9* pShader) 410 { 411 UNIMPLEMENTED 412 413 return D3D_OK; 414 } 415 416 HRESULT WINAPI IDirect3DDevice9Pure_GetVertexShader(LPDIRECT3DDEVICE9 iface, IDirect3DVertexShader9** ppShader) 417 { 418 UNIMPLEMENTED 419 420 return D3D_OK; 421 } 422 423 HRESULT WINAPI IDirect3DDevice9Pure_SetVertexShaderConstantF(LPDIRECT3DDEVICE9 iface, UINT StartRegister, CONST float* pConstantData, UINT Vector4fCount) 424 { 425 UNIMPLEMENTED 426 427 return D3D_OK; 428 } 429 430 HRESULT WINAPI IDirect3DDevice9Pure_GetVertexShaderConstantF(LPDIRECT3DDEVICE9 iface, UINT StartRegister, float* pConstantData, UINT Vector4fCount) 431 { 432 UNIMPLEMENTED 433 434 return D3D_OK; 435 } 436 437 HRESULT WINAPI IDirect3DDevice9Pure_SetVertexShaderConstantI(LPDIRECT3DDEVICE9 iface, UINT StartRegister, CONST int* pConstantData, UINT Vector4iCount) 438 { 439 UNIMPLEMENTED 440 441 return D3D_OK; 442 } 443 444 HRESULT WINAPI IDirect3DDevice9Pure_GetVertexShaderConstantI(LPDIRECT3DDEVICE9 iface, UINT StartRegister, int* pConstantData, UINT Vector4iCount) 445 { 446 UNIMPLEMENTED 447 448 return D3D_OK; 449 } 450 451 HRESULT WINAPI IDirect3DDevice9Pure_SetVertexShaderConstantB(LPDIRECT3DDEVICE9 iface, UINT StartRegister, CONST BOOL* pConstantData, UINT BoolCount) 452 { 453 UNIMPLEMENTED 454 455 return D3D_OK; 456 } 457 458 HRESULT WINAPI IDirect3DDevice9Pure_GetVertexShaderConstantB(LPDIRECT3DDEVICE9 iface, UINT StartRegister, BOOL* pConstantData, UINT BoolCount) 459 { 460 UNIMPLEMENTED 461 462 return D3D_OK; 463 } 464 465 HRESULT WINAPI IDirect3DDevice9Pure_SetStreamSource(LPDIRECT3DDEVICE9 iface, UINT StreamNumber, IDirect3DVertexBuffer9* pStreamData, UINT OffsetInBytes, UINT Stride) 466 { 467 UNIMPLEMENTED 468 469 return D3D_OK; 470 } 471 472 HRESULT WINAPI IDirect3DDevice9Pure_GetStreamSource(LPDIRECT3DDEVICE9 iface, UINT StreamNumber, IDirect3DVertexBuffer9** ppStreamData, UINT* pOffsetInBytes, UINT* pStride) 473 { 474 UNIMPLEMENTED 475 476 return D3D_OK; 477 } 478 479 HRESULT WINAPI IDirect3DDevice9Pure_SetStreamSourceFreq(LPDIRECT3DDEVICE9 iface, UINT StreamNumber,UINT Setting) 480 { 481 UNIMPLEMENTED 482 483 return D3D_OK; 484 } 485 486 HRESULT WINAPI IDirect3DDevice9Pure_GetStreamSourceFreq(LPDIRECT3DDEVICE9 iface, UINT StreamNumber, UINT* pSetting) 487 { 488 UNIMPLEMENTED 489 490 return D3D_OK; 491 } 492 493 HRESULT WINAPI IDirect3DDevice9Pure_SetIndices(LPDIRECT3DDEVICE9 iface, IDirect3DIndexBuffer9* pIndexData) 494 { 495 UNIMPLEMENTED 496 497 return D3D_OK; 498 } 499 500 HRESULT WINAPI IDirect3DDevice9Pure_GetIndices(LPDIRECT3DDEVICE9 iface, IDirect3DIndexBuffer9** ppIndexData) 501 { 502 UNIMPLEMENTED 503 504 return D3D_OK; 505 } 506 507 HRESULT WINAPI IDirect3DDevice9Pure_CreatePixelShader(LPDIRECT3DDEVICE9 iface, CONST DWORD* pFunction, IDirect3DPixelShader9** ppShader) 508 { 509 UNIMPLEMENTED 510 511 return D3D_OK; 512 } 513 514 HRESULT WINAPI IDirect3DDevice9Pure_SetPixelShader(LPDIRECT3DDEVICE9 iface, IDirect3DPixelShader9* pShader) 515 { 516 UNIMPLEMENTED 517 518 return D3D_OK; 519 } 520 521 HRESULT WINAPI IDirect3DDevice9Pure_GetPixelShader(LPDIRECT3DDEVICE9 iface, IDirect3DPixelShader9** ppShader) 522 { 523 UNIMPLEMENTED 524 525 return D3D_OK; 526 } 527 528 HRESULT WINAPI IDirect3DDevice9Pure_SetPixelShaderConstantF(LPDIRECT3DDEVICE9 iface, UINT StartRegister, CONST float* pConstantData, UINT Vector4fCount) 529 { 530 UNIMPLEMENTED 531 532 return D3D_OK; 533 } 534 535 HRESULT WINAPI IDirect3DDevice9Pure_GetPixelShaderConstantF(LPDIRECT3DDEVICE9 iface, UINT StartRegister, float* pConstantData, UINT Vector4fCount) 536 { 537 UNIMPLEMENTED 538 539 return D3D_OK; 540 } 541 542 HRESULT WINAPI IDirect3DDevice9Pure_SetPixelShaderConstantI(LPDIRECT3DDEVICE9 iface, UINT StartRegister, CONST int* pConstantData, UINT Vector4iCount) 543 { 544 UNIMPLEMENTED 545 546 return D3D_OK; 547 } 548 549 HRESULT WINAPI IDirect3DDevice9Pure_GetPixelShaderConstantI(LPDIRECT3DDEVICE9 iface, UINT StartRegister, int* pConstantData, UINT Vector4iCount) 550 { 551 UNIMPLEMENTED 552 553 return D3D_OK; 554 } 555 556 HRESULT WINAPI IDirect3DDevice9Pure_SetPixelShaderConstantB(LPDIRECT3DDEVICE9 iface, UINT StartRegister, CONST BOOL* pConstantData, UINT BoolCount) 557 { 558 UNIMPLEMENTED 559 560 return D3D_OK; 561 } 562 563 HRESULT WINAPI IDirect3DDevice9Pure_GetPixelShaderConstantB(LPDIRECT3DDEVICE9 iface, UINT StartRegister, BOOL* pConstantData, UINT BoolCount) 564 { 565 UNIMPLEMENTED 566 567 return D3D_OK; 568 } 569 570 HRESULT WINAPI IDirect3DDevice9Pure_DrawRectPatch(LPDIRECT3DDEVICE9 iface, UINT Handle, CONST float* pNumSegs, CONST D3DRECTPATCH_INFO* pRectPatchInfo) 571 { 572 UNIMPLEMENTED 573 574 return D3D_OK; 575 } 576 577 HRESULT WINAPI IDirect3DDevice9Pure_DrawTriPatch(LPDIRECT3DDEVICE9 iface, UINT Handle, CONST float* pNumSegs, CONST D3DTRIPATCH_INFO* pTriPatchInfo) 578 { 579 UNIMPLEMENTED 580 581 return D3D_OK; 582 } 583 584 HRESULT WINAPI IDirect3DDevice9Pure_DeletePatch(LPDIRECT3DDEVICE9 iface, UINT Handle) 585 { 586 UNIMPLEMENTED 587 588 return D3D_OK; 589 } 590 591 HRESULT WINAPI IDirect3DDevice9Pure_CreateQuery(LPDIRECT3DDEVICE9 iface, D3DQUERYTYPE Type, IDirect3DQuery9** ppQuery) 592 { 593 UNIMPLEMENTED 594 595 return D3D_OK; 596 } 597 598 /* IDirect3DDevice9 private interface */ 599 HRESULT WINAPI IDirect3DDevice9Pure_SetRenderStateWorker(LPDIRECT3DDEVICE9 iface, D3DRENDERSTATETYPE State, DWORD Value) 600 { 601 UNIMPLEMENTED 602 603 return D3D_OK; 604 } 605 606 HRESULT WINAPI IDirect3DDevice9Pure_SetTextureStageStateInt(LPDIRECT3DDEVICE9 iface, DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD Value) 607 { 608 UNIMPLEMENTED 609 610 return D3D_OK; 611 } 612 613 HRESULT WINAPI IDirect3DDevice9Pure_SetSamplerStateInt(LPDIRECT3DDEVICE9 iface, DWORD Sampler, D3DSAMPLERSTATETYPE Type, DWORD Value) 614 { 615 UNIMPLEMENTED 616 617 return D3D_OK; 618 } 619 620 HRESULT WINAPI IDirect3DDevice9Pure_SetMaterialInt(LPDIRECT3DDEVICE9 iface, CONST D3DMATERIAL9* pMaterial) 621 { 622 UNIMPLEMENTED 623 624 return D3D_OK; 625 } 626 627 HRESULT WINAPI IDirect3DDevice9Pure_SetVertexShaderInt(LPDIRECT3DDEVICE9 iface, IDirect3DVertexShader9* pShader) 628 { 629 UNIMPLEMENTED 630 631 return D3D_OK; 632 } 633 634 HRESULT WINAPI IDirect3DDevice9Pure_SetVertexShaderConstantFInt(LPDIRECT3DDEVICE9 iface, UINT StartRegister,CONST float* pConstantData,UINT Vector4fCount) 635 { 636 UNIMPLEMENTED 637 638 return D3D_OK; 639 } 640 641 HRESULT WINAPI IDirect3DDevice9Pure_SetVertexShaderConstantIInt(LPDIRECT3DDEVICE9 iface, UINT StartRegister,CONST int* pConstantData,UINT Vector4iCount) 642 { 643 UNIMPLEMENTED 644 645 return D3D_OK; 646 } 647 648 HRESULT WINAPI IDirect3DDevice9Pure_SetVertexShaderConstantBInt(LPDIRECT3DDEVICE9 iface, UINT StartRegister,CONST BOOL* pConstantData,UINT BoolCount) 649 { 650 UNIMPLEMENTED 651 652 return D3D_OK; 653 } 654 655 HRESULT WINAPI IDirect3DDevice9Pure_SetPixelShaderInt(LPDIRECT3DDEVICE9 iface, IDirect3DPixelShader9* pShader) 656 { 657 UNIMPLEMENTED 658 659 return D3D_OK; 660 } 661 662 HRESULT WINAPI IDirect3DDevice9Pure_SetPixelShaderConstantFInt(LPDIRECT3DDEVICE9 iface, UINT StartRegister,CONST float* pConstantData,UINT Vector4fCount) 663 { 664 UNIMPLEMENTED 665 666 return D3D_OK; 667 } 668 669 HRESULT WINAPI IDirect3DDevice9Pure_SetPixelShaderConstantIInt(LPDIRECT3DDEVICE9 iface, UINT StartRegister,CONST int* pConstantData,UINT Vector4iCount) 670 { 671 UNIMPLEMENTED 672 673 return D3D_OK; 674 } 675 676 HRESULT WINAPI IDirect3DDevice9Pure_SetPixelShaderConstantBInt(LPDIRECT3DDEVICE9 iface, UINT StartRegister,CONST BOOL* pConstantData,UINT BoolCount) 677 { 678 UNIMPLEMENTED 679 680 return D3D_OK; 681 } 682 683 HRESULT WINAPI IDirect3DDevice9Pure_SetFVFInt(LPDIRECT3DDEVICE9 iface, DWORD FVF) 684 { 685 UNIMPLEMENTED 686 687 return D3D_OK; 688 } 689 690 HRESULT WINAPI IDirect3DDevice9Pure_SetTextureInt(LPDIRECT3DDEVICE9 iface, DWORD Stage,IDirect3DBaseTexture9* pTexture) 691 { 692 UNIMPLEMENTED 693 694 return D3D_OK; 695 } 696 697 HRESULT WINAPI IDirect3DDevice9Pure_SetIndicesInt(LPDIRECT3DDEVICE9 iface, IDirect3DIndexBuffer9* pIndexData) 698 { 699 UNIMPLEMENTED 700 701 return D3D_OK; 702 } 703 704 HRESULT WINAPI IDirect3DDevice9Pure_SetStreamSourceInt(LPDIRECT3DDEVICE9 iface, UINT StreamNumber,IDirect3DVertexBuffer9* pStreamData,UINT OffsetInBytes,UINT Stride) 705 { 706 UNIMPLEMENTED 707 708 return D3D_OK; 709 } 710 711 HRESULT WINAPI IDirect3DDevice9Pure_SetStreamSourceFreqInt(LPDIRECT3DDEVICE9 iface, UINT StreamNumber,UINT Setting) 712 { 713 UNIMPLEMENTED 714 715 return D3D_OK; 716 } 717 718 VOID WINAPI IDirect3DDevice9Pure_UpdateRenderState(LPDIRECT3DDEVICE9 iface, DWORD Unknown1, DWORD Unknown2) 719 { 720 UNIMPLEMENTED 721 } 722 723 HRESULT WINAPI IDirect3DDevice9Pure_SetTransformInt(LPDIRECT3DDEVICE9 iface, D3DTRANSFORMSTATETYPE State,CONST D3DMATRIX* pMatrix) 724 { 725 UNIMPLEMENTED 726 727 return D3D_OK; 728 } 729 730 HRESULT WINAPI IDirect3DDevice9Pure_MultiplyTransformInt(LPDIRECT3DDEVICE9 iface, D3DTRANSFORMSTATETYPE State, CONST D3DMATRIX* pMatrix) 731 { 732 UNIMPLEMENTED 733 734 return D3D_OK; 735 } 736 737 HRESULT WINAPI IDirect3DDevice9Pure_SetClipPlaneInt(LPDIRECT3DDEVICE9 iface, DWORD Index, CONST float* pPlane) 738 { 739 UNIMPLEMENTED 740 741 return D3D_OK; 742 } 743 744 VOID WINAPI IDirect3DDevice9Pure_UpdateDriverState(LPDIRECT3DDEVICE9 iface) 745 { 746 UNIMPLEMENTED 747 } 748 749 HRESULT WINAPI IDirect3DDevice9Pure_SetViewportInt(LPDIRECT3DDEVICE9 iface, CONST D3DVIEWPORT9* pViewport) 750 { 751 UNIMPLEMENTED 752 753 return D3D_OK; 754 } 755 756 VOID WINAPI IDirect3DDevice9Pure_SetStreamSourceWorker(LPDIRECT3DDEVICE9 iface, LPVOID UnknownStreamData) 757 { 758 UNIMPLEMENTED 759 } 760 761 HRESULT WINAPI IDirect3DDevice9Pure_SetPixelShaderConstantFWorker(LPDIRECT3DDEVICE9 iface, UINT StartRegister, CONST float* pConstantData, UINT Vector4fCount) 762 { 763 UNIMPLEMENTED 764 765 return D3D_OK; 766 } 767 768 HRESULT WINAPI IDirect3DDevice9Pure_SetPixelShaderConstantIWorker(LPDIRECT3DDEVICE9 iface, UINT StartRegister, CONST int* pConstantData, UINT Vector4iCount) 769 { 770 UNIMPLEMENTED 771 772 return D3D_OK; 773 } 774 775 HRESULT WINAPI IDirect3DDevice9Pure_SetPixelShaderConstantBWorker(LPDIRECT3DDEVICE9 iface, UINT StartRegister, CONST BOOL* pConstantData, UINT BoolCount) 776 { 777 UNIMPLEMENTED 778 779 return D3D_OK; 780 } 781 782 VOID WINAPI IDirect3DDevice9Pure_DrawPrimitiveWorker(LPDIRECT3DDEVICE9 iface, D3DPRIMITIVETYPE PrimitiveType, UINT StartVertex, UINT PrimitiveCount) 783 { 784 UNIMPLEMENTED 785 } 786 787 HRESULT WINAPI IDirect3DDevice9Pure_SetLightInt(LPDIRECT3DDEVICE9 iface, DWORD Index, CONST D3DLIGHT9* pLight) 788 { 789 UNIMPLEMENTED 790 791 return D3D_OK; 792 } 793 794 HRESULT WINAPI IDirect3DDevice9Pure_LightEnableInt(LPDIRECT3DDEVICE9 iface, DWORD Index, BOOL Enable) 795 { 796 UNIMPLEMENTED 797 798 return D3D_OK; 799 } 800 801 HRESULT WINAPI IDirect3DDevice9Pure_SetRenderStateInt(LPDIRECT3DDEVICE9 iface, D3DRENDERSTATETYPE State, DWORD Value) 802 { 803 UNIMPLEMENTED 804 805 return D3D_OK; 806 } 807 808 HRESULT WINAPI IDirect3DDevice9Pure_DrawPrimitiveUPInt(LPDIRECT3DDEVICE9 iface, D3DPRIMITIVETYPE PrimitiveType, UINT PrimitiveCount) 809 { 810 UNIMPLEMENTED 811 812 return D3D_OK; 813 } 814 815 HRESULT WINAPI IDirect3DDevice9Pure_ClearInt(LPDIRECT3DDEVICE9 iface, DWORD Count, CONST D3DRECT* pRects, DWORD Flags, D3DCOLOR Color, float Z, DWORD Stencil) 816 { 817 UNIMPLEMENTED 818 819 return D3D_OK; 820 } 821 822 VOID WINAPI IDirect3DDevice9Pure_DrawPrimitivesWorker(LPDIRECT3DDEVICE9 iface) 823 { 824 UNIMPLEMENTED 825 } 826 827 VOID WINAPI IDirect3DDevice9Pure_UpdateVertexShader(LPDIRECT3DDEVICE9 iface) 828 { 829 UNIMPLEMENTED 830 } 831 832 HRESULT WINAPI IDirect3DDevice9Pure_ValidateDrawCall(LPDIRECT3DDEVICE9 iface, D3DPRIMITIVETYPE PrimitiveType, UINT Unknown1, UINT Unknown2, UINT Unknown3, INT Unknown4, UINT Unknown5, INT Unknown6) 833 { 834 UNIMPLEMENTED 835 836 return D3D_OK; 837 } 838 839 HRESULT WINAPI IDirect3DDevice9Pure_Init(LPDIRECT3DDEVICE9 iface) 840 { 841 UNIMPLEMENTED 842 843 return D3D_OK; 844 } 845 846 VOID WINAPI IDirect3DDevice9Pure_InitState(LPDIRECT3DDEVICE9 iface, INT State) 847 { 848 UNIMPLEMENTED 849 } 850 851 VOID WINAPI IDirect3DDevice9Pure_Destroy(LPDIRECT3DDEVICE9 iface) 852 { 853 UNIMPLEMENTED 854 } 855 856 VOID WINAPI IDirect3DDevice9Pure_VirtualDestructor(LPDIRECT3DDEVICE9 iface) 857 { 858 UNIMPLEMENTED 859 } 860