@@ -612,3 +612,48 @@ RootDescriptorTable provides basic table structure:
612612#. **NumDescriptorRanges **: Number of descriptor ranges
613613#. **DescriptorRangesOffset **: Offset to descriptor range array
614614
615+ Static Samplers
616+ ~~~~~~~~~~~~~~~
617+
618+ Static samplers provide a way to define fixed sampler states within the root signature itself.
619+
620+ .. code-block :: cpp
621+
622+ struct StaticSamplerDesc {
623+ FilterMode Filter;
624+ TextureAddressMode AddressU;
625+ TextureAddressMode AddressV;
626+ TextureAddressMode AddressW;
627+ float MipLODBias;
628+ uint32_t MaxAnisotropy;
629+ ComparisonFunc ComparisonFunc;
630+ StaticBorderColor BorderColor;
631+ float MinLOD;
632+ float MaxLOD;
633+ uint32_t ShaderRegister;
634+ uint32_t RegisterSpace;
635+ ShaderVisibility ShaderVisibility;
636+ };
637+
638+
639+ The StaticSamplerDesc structure defines all properties of a static sampler:
640+
641+ #. Filter: The filtering mode (e.g., point, linear, anisotropic) used for texture sampling.
642+ For details, check `Direct X documentation <https://learn.microsoft.com/en-us/windows/win32/api/d3d12/ne-d3d12-d3d12_filter#syntax >`_.
643+ #. AddressU: The addressing mode for the U texture coordinate.
644+ For details, check `Direct X documentation <https://learn.microsoft.com/en-us/windows/win32/api/d3d12/ne-d3d12-d3d12_texture_address_mode >`_.
645+ #. AddressV: The addressing mode for the V texture coordinate.
646+ #. AddressW: The addressing mode for the W texture coordinate.
647+ #. MipLODBias: Bias value applied to mipmap level of detail calculations.
648+ #. MaxAnisotropy: Maximum anisotropy level when using anisotropic filtering.
649+ #. ComparisonFunc: Comparison function used for comparison samplers.
650+ For details, check `Direct X documentation <https://learn.microsoft.com/en-us/windows/win32/api/d3d12/ne-d3d12-d3d12_comparison_func >`_.
651+ #. BorderColor: Predefined border color used when address mode is set to border.
652+ For details, check `Direct X documentation <https://learn.microsoft.com/en-us/windows/win32/api/d3d12/ne-d3d12-d3d12_static_border_color >`_.
653+ #. MinLOD: Minimum level of detail to use for sampling.
654+ #. MaxLOD: Maximum level of detail to use for sampling.
655+ #. ShaderRegister: The shader sampler register (s#) where this sampler is bound.
656+ #. RegisterSpace: The register space used for the binding.
657+ #. ShaderVisibility: Specifies which shader stages can access this sampler.
658+ For details, check `Direct X documentation <https://learn.microsoft.com/en-us/windows/win32/api/d3d12/ne-d3d12-d3d12_shader_visibility >`_.
659+
0 commit comments