typedef struct ID3D12ProtectedResourceSessionVtbl
{
BEGIN_INTERFACE
HRESULT(STDMETHODCALLTYPE *QueryInterface)(
ID3D12ProtectedResourceSession *This,
REFIID riid,
_COM_Outptr_ void **ppvObject);
ULONG(STDMETHODCALLTYPE *AddRef)(ID3D12ProtectedResourceSession *This);
ULONG(STDMETHODCALLTYPE *Release)(ID3D12ProtectedResourceSession *This);
HRESULT(STDMETHODCALLTYPE *GetPrivateData)(
ID3D12ProtectedResourceSession *This,
REFGUID guid,
_Inout_ UINT *pDataSize,
_Out_writes_bytes_opt_(*pDataSize) void *pData);
HRESULT(STDMETHODCALLTYPE *SetPrivateData)(
ID3D12ProtectedResourceSession *This,
REFGUID guid,
UINT DataSize,
_In_reads_bytes_opt_(DataSize) const void *pData);
HRESULT(STDMETHODCALLTYPE *SetPrivateDataInterface)(
ID3D12ProtectedResourceSession *This,
REFGUID guid,
_In_opt_ const IUnknown *pData);
HRESULT(STDMETHODCALLTYPE *SetName)(
ID3D12ProtectedResourceSession *This,
LPCWSTR Name);
END_INTERFACE
} ID3D12ProtectedResourceSessionVtbl;
interface ID3D12ProtectedResourceSession
{
CONST_VTBL struct ID3D12ProtectedResourceSessionVtbl *lpVtbl;
};
这个接口包含了一系列方法,用于查询接口、增加引用计数、获取和设置私有数据、设置对象名称等。ID3D12ProtectedResourceSession 接口用于创建受保护资源的会话,以便在特定的硬件环境中确保对这些资源的安全访问。
具体的接口定义和使用方式可能会根据 DirectX 12 的版本而有所不同。
转载请注明出处:http://www.zyzy.cn/article/detail/26137/Win32 API/D3d12.h/ID3D12ProtectedResourceSession