ID3D12Device4::CreateProtectedResourceSession method (d3d12.h)

Creates an object that represents a session for content protection. You can then provide that session when you're creating resource or heap objects, to indicate that they should be protected.

Note

Memory contents can't be transferred from a protected resource to an unprotected resource.

Syntax

HRESULT CreateProtectedResourceSession(
  [in]  const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc,
  [in]  REFIID                                      riid,
  [out] void                                        **ppSession
);

Parameters

[in] pDesc

Type: const D3D12_PROTECTED_RESOURCE_SESSION_DESC*

A pointer to a constant D3D12_PROTECTED_RESOURCE_SESSION_DESC structure, describing the session to create.

[in] riid

Type: REFIID

A reference to the globally unique identifier (GUID) of the ID3D12ProtectedResourceSession interface.

[out] ppSession

Type: void**

A pointer to a memory block that receives an ID3D12ProtectedResourceSession interface pointer to the created session object.

Requirements

Requirement Value
Minimum supported client Windows 10 Build 20348
Minimum supported server Windows 10 Build 20348
Target Platform Windows
Header d3d12.h
Library d3d12.lib
DLL d3d12.dll