ID3D12Device::CreateComponentPlacedResourceX Method

Places a component of a resource (a subresource).

Syntax

public:
HRESULT CreateComponentPlacedResourceX(
         const D3D12XBOX_COMPONENT_PLACED_ADDRESSES *pComponentLocations,
         const D3D12_RESOURCE_DESC *pDesc,
         D3D12_RESOURCE_STATES InitialState,
         const D3D12_CLEAR_VALUE *pOptimizedClearValue,
         REFIID riid,
         void **ppvResource
)  

Parameters

pComponentLocations
Type: D3D12XBOX_COMPONENT_PLACED_ADDRESSES *

[in] The component locations, as a D3D12XBOX_COMPONENT_PLACED_ADDRESSES structure.

pDesc
Type: D3D12_RESOURCE_DESC *

[in] The description of the resource or subresource, as a pointer to a D3D12_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.

Return value

Type: HRESULT 

One of the Direct3D 12 return codes.

Requirements

Header: Declared in d3d12_x.h.

Library: Use d3d12_x.lib.

See also

Reference

ID3D12Device Interface

ID3D12Device Members