ID3D12Device::CreateSampler method (d3d12.h)
Create a sampler object that encapsulates sampling information for a texture.
Syntax
void CreateSampler(
[in] const D3D12_SAMPLER_DESC *pDesc,
[in] D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor
);
Parameters
[in] pDesc
Type: const D3D12_SAMPLER_DESC*
A pointer to a D3D12_SAMPLER_DESC structure that describes the sampler.
[in] DestDescriptor
Type: D3D12_CPU_DESCRIPTOR_HANDLE
Describes the CPU descriptor handle that represents the start of the heap that holds the sampler.
Return value
None
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d12.h |
Library | D3D12.lib |
DLL | D3D12.dll |