Commit d8d87745 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

include: Add D3D10CalcSubresource().

parent fae48444
...@@ -252,6 +252,13 @@ cpp_quote("#define MAKE_D3D10_STATUS(code) MAKE_HRESULT( 0, _ ...@@ -252,6 +252,13 @@ cpp_quote("#define MAKE_D3D10_STATUS(code) MAKE_HRESULT( 0, _
cpp_quote("#define D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS MAKE_D3D10_HRESULT(1)") cpp_quote("#define D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS MAKE_D3D10_HRESULT(1)")
cpp_quote("#define D3D10_ERROR_FILE_NOT_FOUND MAKE_D3D10_HRESULT(2)") cpp_quote("#define D3D10_ERROR_FILE_NOT_FOUND MAKE_D3D10_HRESULT(2)")
cpp_quote("#if defined(__cplusplus) && !defined(D3D10_NO_HELPERS)")
cpp_quote("inline unsigned int D3D10CalcSubresource(unsigned int level, unsigned int layer, unsigned int level_count)")
cpp_quote("{")
cpp_quote(" return layer * level_count + level;")
cpp_quote("}")
cpp_quote("#endif")
typedef enum D3D10_BLEND { typedef enum D3D10_BLEND {
D3D10_BLEND_ZERO = 1, D3D10_BLEND_ZERO = 1,
D3D10_BLEND_ONE = 2, D3D10_BLEND_ONE = 2,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment