public:
HRESULT CreatePlacedResourceX(
D3D12_GPU_VIRTUAL_ADDRESS ResourceLocation,
const D3D12_RESOURCE_DESC *pDesc,
D3D12_RESOURCE_STATES InitialState,
const D3D12_CLEAR_VALUE *pOptimizedClearValue,
REFIID riid,
void **ppvResource
)
ResourceLocation
Type: D3D12_GPU_VIRTUAL_ADDRESS
[in] The address of the resource (a UINT64).
pDesc
Type: D3D12_RESOURCE_DESC *
[in] The description of the resource, as a pointer to a D3D12_RESOURCE_DESC structure.
InitialState
Type: D3D12_RESOURCE_STATES
The initial resource-usage state of the resource, as a bitwise-OR’d combination of D3D12_RESOURCE_STATES enumeration constants. For Xbox One, the D3D12_RESOURCE_STATES enumeration has additional, Xbox-specific enumeration constants, such as whether to preserve compressed color.
pOptimizedClearValue
Type: D3D12_CLEAR_VALUE *
[in, optional] Color optimizations to help benefit some GPU architectures that store a clear color in their resource descriptors, as a pointer to a D3D12_CLEAR_VALUE structure.
riid
Type: REFIID
The globally unique identifier (GUID) for the resource interface (ID3D12Resource). The REFIID, or GUID, of the interface to the resource can be obtained by using the __uuidof() macro. For example, __uuidof(ID3D12Resource) will get the GUID of the interface to a resource.
**ppvResource
Type: void
[out, optional] The resource.
Type: HRESULT
One of the Direct3D 12 return codes.
Header: Declared in d3d12_x.h.
Library: Use d3d12_x.lib.