/*
* Copyright 2010 Rico Schüller
* Copyright 2013 Austin English
*
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
/*
* Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
* other than GPL or LGPL is available it will apply instead, Oracle elects to use only
* the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
* a choice of LGPL license versions is made available with the language indicating
* that LGPLv2 or any later version may be used, or where a choice of which version
* of the LGPL is applied is otherwise unspecified.
*/
import "oaidl.idl";
import "ocidl.idl";
import "dxgi.idl";
import "d3dcommon.idl";
cpp_quote("#define D3D11_DEFAULT_DEPTH_BIAS_CLAMP 0.0f")
cpp_quote("#define D3D11_DEFAULT_MIP_LOD_BIAS 0.0f")
cpp_quote("#define D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS 0.0f")
cpp_quote("#define D3D11_DEFAULT_VIEWPORT_MAX_DEPTH 0.0f")
cpp_quote("#define D3D11_DEFAULT_VIEWPORT_MIN_DEPTH 0.0f")
cpp_quote("#define D3D11_FLOAT32_MAX (3.402823466e+38f)")
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
cpp_quote("struct CD3D11_DEFAULT {};")
cpp_quote("extern const DECLSPEC_SELECTANY CD3D11_DEFAULT D3D11_DEFAULT;")
cpp_quote("#endif")
typedef enum D3D11_BLEND
{
D3D11_BLEND_ZERO = 1,
D3D11_BLEND_ONE = 2,
D3D11_BLEND_BLEND_FACTOR = 14,
D3D11_BLEND_SRC1_COLOR = 16,
D3D11_BLEND_SRC1_ALPHA = 18,
} D3D11_BLEND;
typedef enum D3D11_BLEND_OP
{
D3D11_BLEND_OP_ADD = 1,
{
} D3D11_BOX;
{
{
};
{
};
{
{
};
{
};
{
{
{
{
typedef enum D3D11_COUNTER
{
D3D11_COUNTER_DEVICE_DEPENDENT_0 = 0x40000000,
{
{
{
typedef enum D3D11_CULL_MODE
{
D3D11_CULL_NONE = 1,
{
{
{
typedef enum D3D11_FEATURE
{
typedef enum D3D11_FILL_MODE
{
D3D11_FILL_WIREFRAME = 2,
typedef enum D3D11_FILTER_TYPE
{
cpp_quote("#define D3D11_ENCODE_BASIC_FILTER(min, mag, mip, bComparison) \\")
cpp_quote(" ((D3D11_FILTER)(((bComparison) ? D3D11_COMPARISON_FILTERING_BIT : 0 ) | \\")
cpp_quote(" (((min)&D3D11_FILTER_TYPE_MASK) << D3D11_MIN_FILTER_SHIFT) | \\")
cpp_quote(" (((mag)&D3D11_FILTER_TYPE_MASK) << D3D11_MAG_FILTER_SHIFT) | \\")
cpp_quote(" (((mip)&D3D11_FILTER_TYPE_MASK) << D3D11_MIP_FILTER_SHIFT)))")
cpp_quote("#define D3D11_ENCODE_ANISOTROPIC_FILTER(bComparison) \\")
cpp_quote(" ((D3D11_FILTER)(D3D11_ANISOTROPIC_FILTERING_BIT | \\" )
cpp_quote(" D3D11_ENCODE_BASIC_FILTER(D3D11_FILTER_TYPE_LINEAR,D3D11_FILTER_TYPE_LINEAR, \\" )
cpp_quote(" D3D11_FILTER_TYPE_LINEAR,bComparison)))" )
cpp_quote("#define D3D11_DECODE_MIN_FILTER(d3d11Filter) \\")
cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIN_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
cpp_quote("#define D3D11_DECODE_MAG_FILTER(d3d11Filter) \\")
cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MAG_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
cpp_quote("#define D3D11_DECODE_MIP_FILTER(d3d11Filter) \\")
cpp_quote(" ((D3D11_FILTER_TYPE)(((d3d11Filter) >> D3D11_MIP_FILTER_SHIFT) & D3D11_FILTER_TYPE_MASK))")
cpp_quote("#define D3D11_DECODE_IS_COMPARISON_FILTER(d3d11Filter) ((d3d11Filter) & D3D11_COMPARISON_FILTERING_BIT)")
cpp_quote("#define D3D11_DECODE_IS_ANISOTROPIC_FILTER(d3d11Filter) \\")
cpp_quote(" (((d3d11Filter) & D3D11_ANISOTROPIC_FILTERING_BIT ) \\" )
cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIN_FILTER(d3d11Filter)) \\" )
cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MAG_FILTER(d3d11Filter)) \\" )
cpp_quote(" && (D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIP_FILTER(d3d11Filter)))")
typedef enum D3D11_FILTER
{
D3D11_FILTER_MIN_MAG_MIP_POINT = 0x00,
D3D11_FILTER_MIN_MAG_MIP_LINEAR = 0x15,
D3D11_FILTER_ANISOTROPIC = 0x55,
} D3D11_FILTER;
typedef enum D3D11_DSV_FLAG
{
D3D11_DSV_READ_ONLY_DEPTH = 0x1,
D3D11_DSV_READ_ONLY_STENCIL = 0x2,
{
{
{
D3D11_MAP_READ = 1,
} D3D11_MAP;
{
void *pData;
typedef enum D3D11_QUERY
{
} D3D11_QUERY;
{
D3D11_ASYNC_GETDATA_DONOTFLUSH = 0x0001,
{
D3D11_RESOURCE_MISC_GENERATE_MIPS = 0x00000001L,
D3D11_RESOURCE_MISC_SHARED = 0x00000002L,
D3D11_RESOURCE_MISC_TEXTURECUBE = 0x00000004L,
D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS = 0x00000010L,
D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS = 0x00000020L,
D3D11_RESOURCE_MISC_BUFFER_STRUCTURED = 0x00000040L,
D3D11_RESOURCE_MISC_RESOURCE_CLAMP = 0x00000080L,
D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX = 0x00000100L,
D3D11_RESOURCE_MISC_GDI_COMPATIBLE = 0x00000200L,
D3D11_RESOURCE_MISC_SHARED_NTHANDLE = 0x00000800L,
D3D11_RESOURCE_MISC_RESTRICTED_CONTENT = 0x00001000L,
D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE = 0x00002000L,
D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER = 0x00004000L,
D3D11_RESOURCE_MISC_GUARDED = 0x00008000L
{
{
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
cpp_quote("struct CD3D11_RASTERIZER_DESC : public D3D11_RASTERIZER_DESC {")
cpp_quote(" CD3D11_RASTERIZER_DESC() {}")
cpp_quote(" explicit CD3D11_RASTERIZER_DESC(const D3D11_RASTERIZER_DESC &o) : D3D11_RASTERIZER_DESC(o) {}")
cpp_quote(" explicit CD3D11_RASTERIZER_DESC(CD3D11_DEFAULT) {")
cpp_quote(" FillMode = D3D11_FILL_SOLID;")
cpp_quote(" CullMode = D3D11_CULL_BACK;")
cpp_quote(" FrontCounterClockwise = FALSE;")
cpp_quote(" DepthBias = D3D11_DEFAULT_DEPTH_BIAS;")
cpp_quote(" DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;")
cpp_quote(" SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;")
cpp_quote(" DepthClipEnable = TRUE;")
cpp_quote(" ScissorEnable = FALSE;")
cpp_quote(" MultisampleEnable = FALSE;")
cpp_quote(" AntialiasedLineEnable = FALSE;")
cpp_quote(" }")
cpp_quote(" explicit CD3D11_RASTERIZER_DESC(D3D11_FILL_MODE fillMode, D3D11_CULL_MODE cullMode," )
cpp_quote(" BOOL frontCounterClockwise, INT depthBias, FLOAT depthBiasClamp, FLOAT slopeScaledDepthBias,")
cpp_quote(" BOOL depthClipEnable, BOOL scissorEnable, BOOL multisampleEnable, BOOL antialiasedLineEnable) {")
cpp_quote(" FillMode = fillMode;")
cpp_quote(" CullMode = cullMode;")
cpp_quote(" FrontCounterClockwise = frontCounterClockwise;")
cpp_quote(" DepthBias = depthBias;")
cpp_quote(" DepthBiasClamp = depthBiasClamp;")
cpp_quote(" SlopeScaledDepthBias = slopeScaledDepthBias;")
cpp_quote(" DepthClipEnable = depthClipEnable;")
cpp_quote(" ScissorEnable = scissorEnable;")
cpp_quote(" MultisampleEnable = multisampleEnable;")
cpp_quote(" AntialiasedLineEnable = antialiasedLineEnable;")
cpp_quote(" }")
cpp_quote(" ~CD3D11_RASTERIZER_DESC() {}")
cpp_quote(" operator const D3D11_RASTERIZER_DESC&() const { return *this; }")
cpp_quote("};")
cpp_quote("#endif")
{
{
{
typedef enum D3D11_STENCIL_OP
{
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
cpp_quote("}")
cpp_quote("inline UINT D3D11CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT MipLevels) {")
cpp_quote(" return MipSlice + ArraySlice * MipLevels;")
cpp_quote("}")
cpp_quote("extern \"C\"{")
cpp_quote("#endif")
{
const void *pSysMem;
{
{
{
{
{
{
{
{
{
{
{
{
{
{
{
{
{
{
{
{
{
{
{
{
{
{
{
{
{
{
{
};
typedef enum D3D11_USAGE
{
} D3D11_USAGE;
typedef enum D3D11_BIND_FLAG
{
D3D11_BIND_VERTEX_BUFFER = 0x0001,
D3D11_BIND_INDEX_BUFFER = 0x0002,
D3D11_BIND_CONSTANT_BUFFER = 0x0004,
D3D11_BIND_SHADER_RESOURCE = 0x0008,
D3D11_BIND_STREAM_OUTPUT = 0x0010,
D3D11_BIND_RENDER_TARGET = 0x0020,
D3D11_BIND_DEPTH_STENCIL = 0x0040,
D3D11_BIND_UNORDERED_ACCESS = 0x0080,
D3D11_BIND_DECODER = 0x0200,
D3D11_BIND_VIDEO_ENCODER = 0x0400
{
D3D11_CPU_ACCESS_WRITE = 0x00010000,
D3D11_CPU_ACCESS_READ = 0x00020000
{
{
(D3D11_COLOR_WRITE_ENABLE_RED|D3D11_COLOR_WRITE_ENABLE_GREEN|D3D11_COLOR_WRITE_ENABLE_BLUE|D3D11_COLOR_WRITE_ENABLE_ALPHA)
{
D3D11_FORMAT_SUPPORT_BUFFER = 0x00000001,
D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER = 0x00000002,
D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER = 0x00000004,
D3D11_FORMAT_SUPPORT_SO_BUFFER = 0x00000008,
D3D11_FORMAT_SUPPORT_TEXTURE1D = 0x00000010,
D3D11_FORMAT_SUPPORT_TEXTURE2D = 0x00000020,
D3D11_FORMAT_SUPPORT_TEXTURE3D = 0x00000040,
D3D11_FORMAT_SUPPORT_TEXTURECUBE = 0x00000080,
D3D11_FORMAT_SUPPORT_SHADER_LOAD = 0x00000100,
D3D11_FORMAT_SUPPORT_SHADER_SAMPLE = 0x00000200,
D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON = 0x00000400,
D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT = 0x00000800,
D3D11_FORMAT_SUPPORT_MIP = 0x00001000,
D3D11_FORMAT_SUPPORT_MIP_AUTOGEN = 0x00002000,
D3D11_FORMAT_SUPPORT_RENDER_TARGET = 0x00004000,
D3D11_FORMAT_SUPPORT_BLENDABLE = 0x00008000,
D3D11_FORMAT_SUPPORT_DEPTH_STENCIL = 0x00010000,
D3D11_FORMAT_SUPPORT_CPU_LOCKABLE = 0x00020000,
D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE = 0x00040000,
D3D11_FORMAT_SUPPORT_DISPLAY = 0x00080000,
D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT = 0x00100000,
D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET = 0x00200000,
D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD = 0x00400000,
D3D11_FORMAT_SUPPORT_SHADER_GATHER = 0x00800000,
D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST = 0x01000000,
D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW = 0x02000000,
D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON = 0x04000000
typedef enum D3D11_CLEAR_FLAG
{
D3D11_CLEAR_DEPTH = 0x0001L,
D3D11_CLEAR_STENCIL = 0x0002L
{
{
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
cpp_quote("struct CD3D11_BLEND_DESC : public D3D11_BLEND_DESC {")
cpp_quote(" CD3D11_BLEND_DESC() {}")
cpp_quote(" explicit CD3D11_BLEND_DESC(const D3D11_BLEND_DESC &o) : D3D11_BLEND_DESC(o) {}")
cpp_quote(" explicit CD3D11_BLEND_DESC(CD3D11_DEFAULT) {")
cpp_quote(" AlphaToCoverageEnable = FALSE;")
cpp_quote(" IndependentBlendEnable = FALSE;")
cpp_quote(" for(D3D11_RENDER_TARGET_BLEND_DESC *target; target < RenderTarget+D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; target++) {")
cpp_quote(" target->BlendEnable = FALSE;")
cpp_quote(" target->SrcBlend = target->SrcBlendAlpha = D3D11_BLEND_ONE;")
cpp_quote(" target->DestBlend = target->DestBlendAlpha = D3D11_BLEND_ZERO;")
cpp_quote(" target->BlendOp = target->BlendOpAlpha = D3D11_BLEND_OP_ADD;")
cpp_quote(" target->RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;")
cpp_quote(" }")
cpp_quote(" }")
cpp_quote(" ~CD3D11_BLEND_DESC() {}")
cpp_quote(" operator const D3D11_BLEND_DESC&() const { return *this; }")
cpp_quote("};" )
cpp_quote("#endif" )
{
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
cpp_quote("struct CD3D11_BUFFER_DESC : public D3D11_BUFFER_DESC {")
cpp_quote(" CD3D11_BUFFER_DESC() {}" )
cpp_quote(" explicit CD3D11_BUFFER_DESC(const D3D11_BUFFER_DESC &o) : D3D11_BUFFER_DESC(o) {}")
cpp_quote(" explicit CD3D11_BUFFER_DESC(UINT byteWidth,UINT bindFlags,")
cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0,")
cpp_quote(" UINT miscFlags = 0, UINT structureByteStride = 0 ) {")
cpp_quote(" ByteWidth = byteWidth;")
cpp_quote(" Usage = usage;")
cpp_quote(" BindFlags = bindFlags;")
cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
cpp_quote(" MiscFlags = miscFlags;" )
cpp_quote(" StructureByteStride = structureByteStride;")
cpp_quote(" }")
cpp_quote(" ~CD3D11_BUFFER_DESC() {}")
cpp_quote(" operator const D3D11_BUFFER_DESC&() const { return *this; }")
cpp_quote("};" )
cpp_quote("#endif" )
{
{
};
{
{
{
{
};
{
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
cpp_quote("struct CD3D11_SAMPLER_DESC : public D3D11_SAMPLER_DESC {")
cpp_quote(" CD3D11_SAMPLER_DESC() {}")
cpp_quote(" explicit CD3D11_SAMPLER_DESC(const D3D11_SAMPLER_DESC &o) : D3D11_SAMPLER_DESC(o) {}")
cpp_quote(" explicit CD3D11_SAMPLER_DESC(CD3D11_DEFAULT) {" )
cpp_quote(" Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;")
cpp_quote(" AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;")
cpp_quote(" AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;")
cpp_quote(" AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;")
cpp_quote(" MipLODBias = 0;")
cpp_quote(" MaxAnisotropy = 1;")
cpp_quote(" ComparisonFunc = D3D11_COMPARISON_NEVER;")
cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
cpp_quote(" MinLOD = -3.402823466e+38f;")
cpp_quote(" MaxLOD = 3.402823466e+38f;")
cpp_quote(" }")
cpp_quote(" explicit CD3D11_SAMPLER_DESC(D3D11_FILTER filter, D3D11_TEXTURE_ADDRESS_MODE addressU,")
cpp_quote(" D3D11_TEXTURE_ADDRESS_MODE addressV, D3D11_TEXTURE_ADDRESS_MODE addressW,")
cpp_quote(" FLOAT mipLODBias, UINT maxAnisotropy, D3D11_COMPARISON_FUNC comparisonFunc,")
cpp_quote(" const FLOAT *borderColor, FLOAT minLOD, FLOAT maxLOD) {" )
cpp_quote(" Filter = filter;")
cpp_quote(" AddressU = addressU;")
cpp_quote(" AddressV = addressV;")
cpp_quote(" AddressW = addressW;")
cpp_quote(" MipLODBias = mipLODBias;")
cpp_quote(" MaxAnisotropy = maxAnisotropy;")
cpp_quote(" ComparisonFunc = comparisonFunc;")
cpp_quote(" if(borderColor) {")
cpp_quote(" BorderColor[0] = borderColor[0];")
cpp_quote(" BorderColor[1] = borderColor[1];")
cpp_quote(" BorderColor[2] = borderColor[2];")
cpp_quote(" BorderColor[3] = borderColor[3];")
cpp_quote(" }else {")
cpp_quote(" BorderColor[0] = BorderColor[1] = BorderColor[2] = BorderColor[3] = 1.0f;")
cpp_quote(" }")
cpp_quote(" MinLOD = minLOD;")
cpp_quote(" MaxLOD = maxLOD;")
cpp_quote(" }")
cpp_quote(" ~CD3D11_SAMPLER_DESC() {}")
cpp_quote(" operator const D3D11_SAMPLER_DESC&() const { return *this; }")
cpp_quote("};")
cpp_quote("#endif")
{
{
};
{
{
cpp_quote("#if !defined(D3D11_NO_HELPERS) && defined(__cplusplus)")
cpp_quote("struct CD3D11_TEXTURE2D_DESC : public D3D11_TEXTURE2D_DESC {")
cpp_quote(" CD3D11_TEXTURE2D_DESC() {}")
cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(const D3D11_TEXTURE2D_DESC &o) : D3D11_TEXTURE2D_DESC(o) {}")
cpp_quote(" explicit CD3D11_TEXTURE2D_DESC(DXGI_FORMAT format, UINT width, UINT height, UINT arraySize = 1,")
cpp_quote(" UINT mipLevels = 0, UINT bindFlags = D3D11_BIND_SHADER_RESOURCE,")
cpp_quote(" D3D11_USAGE usage = D3D11_USAGE_DEFAULT, UINT cpuaccessFlags = 0, UINT sampleCount = 1," )
cpp_quote(" UINT sampleQuality = 0, UINT miscFlags = 0) {")
cpp_quote(" Width = width;")
cpp_quote(" Height = height;")
cpp_quote(" MipLevels = mipLevels;")
cpp_quote(" ArraySize = arraySize;")
cpp_quote(" Format = format;")
cpp_quote(" SampleDesc.Count = sampleCount;")
cpp_quote(" SampleDesc.Quality = sampleQuality;")
cpp_quote(" Usage = usage;")
cpp_quote(" BindFlags = bindFlags;")
cpp_quote(" CPUAccessFlags = cpuaccessFlags;")
cpp_quote(" MiscFlags = miscFlags;")
cpp_quote(" }" )
cpp_quote(" ~CD3D11_TEXTURE2D_DESC() {}")
cpp_quote(" operator const D3D11_TEXTURE2D_DESC&() const { return *this; }")
cpp_quote("};")
cpp_quote("#endif")
{
/* A couple forward declarations are needed */
interface ID3D11Device;
interface ID3D11ClassLinkage;
[
]
interface ID3D11DeviceChild : IUnknown
{
void GetDevice(
}
[
]
interface ID3D11Asynchronous : ID3D11DeviceChild
{
UINT GetDataSize();
}
[
]
interface ID3D11Query : ID3D11Asynchronous
{
void GetDesc(
}
[
]
interface ID3D11Resource : ID3D11DeviceChild
{
void GetType(
void SetEvictionPriority(
}
[
]
interface ID3D11View : ID3D11DeviceChild
{
void GetResource(
}
[
]
interface ID3D11BlendState : ID3D11DeviceChild
{
void GetDesc(
}
[
]
interface ID3D11Buffer : ID3D11Resource
{
void GetDesc(
}
[
]
interface ID3D11ClassInstance : ID3D11DeviceChild
{
void GetClassLinkage(
void GetDesc(
void GetInstanceName(
void GetTypeName(
}
[
]
interface ID3D11ClassLinkage : ID3D11DeviceChild
{
}
[
]
interface ID3D11CommandList : ID3D11DeviceChild
{
}
[
]
interface ID3D11ComputeShader : ID3D11DeviceChild
{
}
[
]
interface ID3D11Counter : ID3D11Asynchronous
{
void GetDesc(
}
[
]
interface ID3D11DepthStencilState : ID3D11DeviceChild
{
void GetDesc(
}
[
]
interface ID3D11DepthStencilView : ID3D11View
{
void GetDesc(
}
[
]
interface ID3D11DomainShader : ID3D11DeviceChild
{
}
[
]
interface ID3D11GeometryShader : ID3D11DeviceChild
{
}
[
]
interface ID3D11HullShader : ID3D11DeviceChild
{
}
[
]
interface ID3D11InputLayout : ID3D11DeviceChild
{
}
[
]
interface ID3D11PixelShader : ID3D11DeviceChild
{
}
[
]
interface ID3D11Predicate : ID3D11Query
{
}
[
]
interface ID3D11RasterizerState : ID3D11DeviceChild
{
void GetDesc(
}
[
]
interface ID3D11RenderTargetView : ID3D11View
{
void GetDesc(
}
[
]
interface ID3D11SamplerState : ID3D11DeviceChild
{
void GetDesc(
}
[
]
interface ID3D11ShaderResourceView : ID3D11View
{
void GetDesc(
}
[
]
interface ID3D11Texture1D : ID3D11Resource
{
void GetDesc(
}
[
]
interface ID3D11Texture2D : ID3D11Resource
{
void GetDesc(
}
[
]
interface ID3D11Texture3D : ID3D11Resource
{
void GetDesc(
}
[
]
interface ID3D11UnorderedAccessView : ID3D11View
{
void GetDesc(
}
[
]
interface ID3D11VertexShader : ID3D11DeviceChild
{
}
[
]
interface ID3D11DeviceContext : ID3D11DeviceChild
{
void VSSetConstantBuffers(
void PSSetShaderResources(
void PSSetShader(
void PSSetSamplers(
void VSSetShader(
void DrawIndexed(
void Draw(
void Unmap(
void PSSetConstantBuffers(
void IASetInputLayout(
void IASetVertexBuffers(
void IASetIndexBuffer(
void DrawIndexedInstanced(
void DrawInstanced(
void GSSetConstantBuffers(
void GSSetShader(
void IASetPrimitiveTopology(
void VSSetShaderResources(
void VSSetSamplers(
void Begin(
void End(
void SetPredication(
void GSSetShaderResources(
void GSSetSamplers(
void OMSetRenderTargets(
void OMSetBlendState(
void OMSetDepthStencilState(
void SOSetTargets(
void DrawAuto();
void DrawInstancedIndirect(
void Dispatch(
void DispatchIndirect(
void RSSetState(
void RSSetViewports(
void RSSetScissorRects(
void CopySubresourceRegion(
void CopyResource(
void UpdateSubresource(
void CopyStructureCount(
void ClearRenderTargetView(
void ClearDepthStencilView(
void GenerateMips(
void SetResourceMinLOD(
void ResolveSubresource(
void ExecuteCommandList(
void HSSetShaderResources(
void HSSetShader(
void HSSetSamplers(
void HSSetConstantBuffers(
void DSSetShaderResources(
void DSSetShader(
void DSSetSamplers(
void DSSetConstantBuffers(
void CSSetShaderResources(
void CSSetShader(
void CSSetSamplers(
void CSSetConstantBuffers(
void VSGetConstantBuffers(
void PSGetShaderResources(
void PSGetShader(
void PSGetSamplers(
void VSGetShader(
void PSGetConstantBuffers(
void IAGetInputLayout(
void IAGetVertexBuffers(
void IAGetIndexBuffer(
void GSGetConstantBuffers(
void GSGetShader(
void IAGetPrimitiveTopology(
void VSGetShaderResources(
void VSGetSamplers(
void GetPredication(
void GSGetShaderResources(
void GSGetSamplers(
void OMGetRenderTargets(
void OMGetBlendState(
void OMGetDepthStencilState(
void SOGetTargets(
void RSGetState(
void RSGetViewports(
void RSGetScissorRects(
void HSGetShaderResources(
void HSGetShader(
void HSGetSamplers(
void HSGetConstantBuffers(
void DSGetShaderResources(
void DSGetShader(
void DSGetSamplers(
void DSGetConstantBuffers(
void CSGetShaderResources(
void CSGetShader(
void CSGetSamplers(
void CSGetConstantBuffers(
void ClearState();
void Flush();
}
[
]
interface ID3D11Device : IUnknown
{
[in] const void *pShaderBytecodeWithInputSignature,
[in] const void *pShaderBytecode,
[in] const void *pShaderBytecode,
[in] const void *pShaderBytecode,
[in] const void *pShaderBytecode,
[in] const void *pShaderBytecode,
[in] const void *pShaderBytecode,
[in] const void *pShaderBytecode,
[out] void **ppResource);
void CheckCounterInfo(
[out] void *pFeatureSupportData,
void GetImmediateContext(
}
typedef enum D3D11_CREATE_DEVICE_FLAG {
D3D11_CREATE_DEVICE_SINGLETHREADED = 0x0001,
D3D11_CREATE_DEVICE_DEBUG = 0x0002,
D3D11_CREATE_DEVICE_SWITCH_TO_REF = 0x0004,
D3D11_CREATE_DEVICE_BGRA_SUPPORT = 0x0020,
D3D11_CREATE_DEVICE_DEBUGGABLE = 0x0040,
D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT = 0x0100,
D3D11_CREATE_DEVICE_VIDEO_SUPPORT = 0x0800
cpp_quote("#include <d3d10_1.h>")
cpp_quote("#ifndef D3D11_IGNORE_SDK_LAYERS")
cpp_quote("# include <d3d11sdklayers.h>")
cpp_quote("#endif")
cpp_quote("#include <d3d10misc.h>")
cpp_quote("#include <d3d10shader.h>")
cpp_quote("#include <d3d10effect.h>")
cpp_quote("#include <d3d10_1shader.h>")
cpp_quote("typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
cpp_quote("HRESULT WINAPI D3D11CreateDevice(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,const D3D_FEATURE_LEVEL*," )
cpp_quote(" UINT,UINT,ID3D11Device**,D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")
cpp_quote("typedef HRESULT (WINAPI *PFN_D3D11_CREATE_DEVICE_AND_SWAP_CHAIN)(IDXGIAdapter*,D3D_DRIVER_TYPE,HMODULE,UINT,")
cpp_quote(" const D3D_FEATURE_LEVEL*,UINT,UINT,const DXGI_SWAP_CHAIN_DESC*,IDXGISwapChain**,ID3D11Device**,")
cpp_quote(" D3D_FEATURE_LEVEL*,ID3D11DeviceContext**);")