typedef struct ID3D12StateObjectVtbl
{
BEGIN_INTERFACE
HRESULT(STDMETHODCALLTYPE *QueryInterface)(
ID3D12StateObject *This,
REFIID riid,
_COM_Outptr_ void **ppvObject);
ULONG(STDMETHODCALLTYPE *AddRef)(ID3D12StateObject *This);
ULONG(STDMETHODCALLTYPE *Release)(ID3D12StateObject *This);
HRESULT(STDMETHODCALLTYPE *GetPrivateData)(
ID3D12StateObject *This,
REFGUID guid,
_Inout_ UINT *pDataSize,
_Out_writes_bytes_opt_(*pDataSize) void *pData);
HRESULT(STDMETHODCALLTYPE *SetPrivateData)(
ID3D12StateObject *This,
REFGUID guid,
UINT DataSize,
_In_reads_bytes_opt_(DataSize) const void *pData);
HRESULT(STDMETHODCALLTYPE *SetPrivateDataInterface)(
ID3D12StateObject *This,
REFGUID guid,
_In_opt_ const IUnknown *pData);
HRESULT(STDMETHODCALLTYPE *SetName)(
ID3D12StateObject *This,
LPCWSTR Name);
END_INTERFACE
} ID3D12StateObjectVtbl;
interface ID3D12StateObject
{
CONST_VTBL struct ID3D12StateObjectVtbl *lpVtbl;
};
这个接口包含了一系列方法,用于查询接口、增加引用计数、获取和设置私有数据、设置对象名称等。ID3D12StateObject 接口用于表示状态对象,其中包含了 GPU 状态的描述,如着色器程序、根签名、资源绑定等。
具体的接口定义和使用方式可能会根据 DirectX 12 的版本而有所不同。
转载请注明出处:http://www.zyzy.cn/article/detail/26141/Win32 API/D3d12.h/ID3D12StateObject