Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Create a data processor that will load a resource and then create a shader-resource view for it. Data processors are a component of the asynchronous data loading feature in D3DX10 that uses thread pumps.
Syntax
HRESULT D3DX10CreateAsyncShaderResourceViewProcessor(
_In_ ID3D10Device *pDevice,
_In_ D3DX10_IMAGE_LOAD_INFO *pLoadInfo,
_Out_ ID3DX10DataProcessor **ppDataProcessor
);
Parameters
-
pDevice [in]
-
Type: ID3D10Device*
Pointer to the Direct3D device (see ID3D10Device Interface) that will be used to create a resource and a shader-resource view for that resource.
-
pLoadInfo [in]
-
Type: D3DX10_IMAGE_LOAD_INFO*
Optional. Identifies the characteristics of a texture (see D3DX10_IMAGE_LOAD_INFO) when the data processor is created; set this to NULL to read the characteristics of a texture when the texture is loaded.
-
ppDataProcessor [out]
-
Type: ID3DX10DataProcessor**
Address of a pointer to a buffer that contains the data processor created (see ID3DX10DataProcessor Interface).
Return value
Type: HRESULT
The return value is one of the values listed in Direct3D 10 Return Codes.
Requirements
| Requirement | Value |
|---|---|
| Header |
|
See also