ID3D11DeviceContext::VSGetSamplers 方法 (d3d11.h)
从顶点着色器管道阶段获取采样器状态数组。
语法
void VSGetSamplers(
[in] UINT StartSlot,
[in] UINT NumSamplers,
[out, optional] ID3D11SamplerState **ppSamplers
);
参数
[in] StartSlot
类型:UINT
索引到从零开始的数组中获取采样器(范围为 0 到 D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1)。
[in] NumSamplers
类型:UINT
要从设备上下文中获取的采样器数。 每个管道阶段总共有 16 个采样器槽(范围为 0 到 D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot)。
[out, optional] ppSamplers
类型:ID3D11SamplerState**
要由设备返回的采样器状态接口指针数组(请参阅 ID3D11SamplerState)。
返回值
没有
言论
任何返回的接口的引用计数都会递增一个。 当不再需要 IUnknown::Release 时,应用程序应对返回的接口调用 IUnknown::Release,以避免内存泄漏。
要求
要求 | 价值 |
---|---|
目标平台 | 窗户 |
标头 | d3d11.h |
库 | D3D11.lib |