sample_b (sm4 - asm)
Samples data from the specified Element/texture using the specified address and the filtering mode identified by the given sampler.
|sample_b[_aoffimmi(u,v,w)] dest[.mask], srcAddress[.swizzle], srcResource[.swizzle], srcSampler, srcLODBias.select_component|
[in] The address of the result of the operation.
[in] A set of texture coordinates. For more information see the sample instruction.
[in] A texture register. For more information see the sample instruction.
[in] A sampler register. For more information see the sample instruction.
[in] See the Remarks section for information about this parameter.
The source data may come from any Resource Type, other than Buffers. An additional bias is applied to the level of detail computed as part of the instruction execution.
This instruction behaves like the sample instruction with the addition of applying the specified srcLODBias value to the level of detail value computed as part of the instruction execution prior to selecting the mip map(s). The srcLODBias value is added to the computed LOD on a per-pixel basis, along with the sampler MipLODBias value, prior to the clamp to MinLOD and MaxLOD.
- sample_b inherits the same restrictions as the sample instruction, plus additional restrictions for its additional parameter.
- The range of srcLODBias is (-16.0f to 15.99f); values outside of this range will produce undefined results.
- srcLODBias must use a single component selector if it is not a scalar immediate.
This instruction applies to the following shader stages:
|Vertex Shader||Geometry Shader||Pixel Shader|
This function is supported in the following shader models.
|Shader Model 5||yes|
|Shader Model 4.1||yes|
|Shader Model 4||yes|
|Shader Model 3 (DirectX HLSL)||no|
|Shader Model 2 (DirectX HLSL)||no|
|Shader Model 1 (DirectX HLSL)||no|