Places a component of a resource (a subresource) described by a D3D12XBOX_RESOURCE_DESC.
public:
HRESULT CreateComponentPlacedResourceX1(
const D3D12XBOX_COMPONENT_PLACED_ADDRESSES *pComponentLocations,
const D3D12XBOX_RESOURCE_DESC *pDesc,
D3D12_RESOURCE_STATES InitialState,
const D3D12_CLEAR_VALUE *pOptimizedClearValue,
REFIID riid,
void **ppvResource
)
pComponentLocations
Type: D3D12XBOX_COMPONENT_PLACED_ADDRESSES *
[in] The component locations, as a D3D12XBOX_COMPONENT_PLACED_ADDRESSES structure.
pDesc
Type: D3D12XBOX_RESOURCE_DESC *
[in] The description of the resource or subresource, as a pointer to a D3D12XBOX_RESOURCE_DESC structure.
InitialState
Type: D3D12_RESOURCE_STATES
The initial resource-usage state of the resource component, 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] The optimized value to use for clearing the component, 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.