typedef struct ID3D12PipelineStateVtbl
{
BEGIN_INTERFACE
HRESULT(STDMETHODCALLTYPE *QueryInterface)(
ID3D12PipelineState *This,
REFIID riid,
_COM_Outptr_ void **ppvObject);
ULONG(STDMETHODCALLTYPE *AddRef)(ID3D12PipelineState *This);
ULONG(STDMETHODCALLTYPE *Release)(ID3D12PipelineState *This);
HRESULT(STDMETHODCALLTYPE *GetPrivateData)(
ID3D12PipelineState *This,
REFGUID guid,
_Inout_ UINT *pDataSize,
_Out_writes_bytes_opt_(*pDataSize) void *pData);
HRESULT(STDMETHODCALLTYPE *SetPrivateData)(
ID3D12PipelineState *This,
REFGUID guid,
UINT DataSize,
_In_reads_bytes_opt_(DataSize) const void *pData);
HRESULT(STDMETHODCALLTYPE *SetPrivateDataInterface)(
ID3D12PipelineState *This,
REFGUID guid,
_In_opt_ const IUnknown *pData);
HRESULT(STDMETHODCALLTYPE *SetName)(
ID3D12PipelineState *This,
LPCWSTR Name);
END_INTERFACE
} ID3D12PipelineStateVtbl;
interface ID3D12PipelineState
{
CONST_VTBL struct ID3D12PipelineStateVtbl *lpVtbl;
};
这个接口定义了一系列用于查询接口、增加引用计数、获取和设置私有数据、设置对象名称等基本功能。ID3D12PipelineState 接口表示图形渲染和计算管线的状态,包括着色器、输入布局、渲染目标等。
请注意,具体的接口定义和使用方式可能会根据 DirectX 12 的版本而有所不同。
转载请注明出处:http://www.zyzy.cn/article/detail/26136/Win32 API/D3d12.h/ID3D12PipelineState