Skip to content

LiteFX::Rendering::Backends::DirectX12DescriptorSetLayoutBuilder::makeDescriptor

makeDescriptor overloads

Synopses

Declared in <litefx/backends/dx12_builders.hpp>

Creates a descriptor to the descriptor set layout.

[[dllexport]] virtual DirectX12DescriptorLayout makeDescriptor(
    DescriptorType type,
    UInt32 binding,
    UInt32 descriptorSize,
    UInt32 descriptors,
    bool unbounded) override;

» more...

Creates a static sampler for the descriptor bound to binding.

[[dllexport]] virtual DirectX12DescriptorLayout makeDescriptor(
    UInt32 binding,
    FilterMode magFilter,
    FilterMode minFilter,
    BorderMode borderU,
    BorderMode borderV,
    BorderMode borderW,
    MipMapMode mipMapMode,
    Float mipMapBias,
    Float minLod,
    Float maxLod,
    Float anisotropy) override;

» more...

Return Value

  • The descriptor layout instance.
  • The descriptor layout instance for the static sampler.

Parameters

NameDescription
typeThe type of the descriptor.
bindingThe binding point for the descriptor.
descriptorSizeThe size of a single descriptor.
descriptorsThe number of descriptors to bind.
unboundedtrue if the descriptor should define an unbounded array and false otherwise.
magFilterThe magnifying filter operation.
minFilterThe minifying filter operation.
borderUThe border address mode into U direction.
borderVThe border address mode into V direction.
borderWThe border address mode into W direction.
mipMapModeThe mip map filter operation.
mipMapBiasThe mip map bias.
minLodThe closest mip map distance level.
maxLodThe furthest mip map distance level.
anisotropyThe maximum anisotropy.