vshaderdeclaration.c 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. * vertex declaration implementation
  3. *
  4. * Copyright 2002-2003 Raphael Junqueira
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2.1 of the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with this library; if not, write to the Free Software
  18. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  19. */
  20. #include "config.h"
  21. #include "d3d9_private.h"
  22. WINE_DEFAULT_DEBUG_CHANNEL(d3d_shader);
  23. /**
  24. * DirectX9 SDK download
  25. * http://msdn.microsoft.com/library/default.asp?url=/downloads/list/directx.asp
  26. *
  27. * Exploring D3DX
  28. * http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndrive/html/directx07162002.asp
  29. *
  30. * Using Vertex Shaders
  31. * http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndrive/html/directx02192001.asp
  32. *
  33. * Dx9 New
  34. * http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/graphics/whatsnew.asp
  35. *
  36. * Dx9 Shaders
  37. * http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/graphics/reference/Shaders/VertexShader2_0/VertexShader2_0.asp
  38. * http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/graphics/reference/Shaders/VertexShader2_0/Instructions/Instructions.asp
  39. * http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/graphics/programmingguide/GettingStarted/VertexDeclaration/VertexDeclaration.asp
  40. * http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/graphics/reference/Shaders/VertexShader3_0/VertexShader3_0.asp
  41. *
  42. * Dx9 D3DX
  43. * http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/graphics/programmingguide/advancedtopics/VertexPipe/matrixstack/matrixstack.asp
  44. *
  45. * FVF
  46. * http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/graphics/programmingguide/GettingStarted/VertexFormats/vformats.asp
  47. *
  48. * NVIDIA: DX8 Vertex Shader to NV Vertex Program
  49. * http://developer.nvidia.com/view.asp?IO=vstovp
  50. *
  51. * NVIDIA: Memory Management with VAR
  52. * http://developer.nvidia.com/view.asp?IO=var_memory_management
  53. */
  54. HRESULT WINAPI IDirect3DDevice9Impl_CreateVertexDeclaration(LPDIRECT3DDEVICE9 iface, CONST D3DVERTEXELEMENT9* pVertexElements, IDirect3DVertexDeclaration9** ppDecl) {
  55. IDirect3DDevice9Impl *This = (IDirect3DDevice9Impl *)iface;
  56. FIXME("(%p) : stub\n", This);
  57. return D3D_OK;
  58. }
  59. HRESULT WINAPI IDirect3DDevice9Impl_SetVertexDeclaration(LPDIRECT3DDEVICE9 iface, IDirect3DVertexDeclaration9* pDecl) {
  60. IDirect3DDevice9Impl *This = (IDirect3DDevice9Impl *)iface;
  61. FIXME("(%p) : stub\n", This);
  62. return D3D_OK;
  63. }
  64. HRESULT WINAPI IDirect3DDevice9Impl_GetVertexDeclaration(LPDIRECT3DDEVICE9 iface, IDirect3DVertexDeclaration9** ppDecl) {
  65. IDirect3DDevice9Impl *This = (IDirect3DDevice9Impl *)iface;
  66. FIXME("(%p) : stub\n", This);
  67. return D3D_OK;
  68. }