class ParameterSet

The parameter sets are how resource binding is handled in FidelityFX Cauldron Framework.

File location: framework/cauldron/framework/inc/render/parameterset.h

Methods

Return type

Description

static ParameterSet*

CreateParameterSet ( RootSignature * pRootSignature, ResourceView * pImmediateViews = nullptr )
ParameterSet instance creation function. Implemented per api/platform to return the correct internal resource type.

void

SetRootConstantBufferResource ( const GPUResource * pResource, const size_t size, uint32_t slotIndex ) = 0
Assigns a root constant buffer resource to a specific slot index.

void

SetTextureSRV ( const Texture * pTexture, ViewDimension dimension, uint32_t slotIndex = 0, int32_t mip = -1, int32_t arraySize = -1, int32_t firstSlice = -1 ) = 0
Assigns a texture SRV resource view to a specific slot index.

void

SetTextureUAV ( const Texture * pTexture, ViewDimension dimension, uint32_t slotIndex = 0, int32_t mip = -1, int32_t arraySize = -1, int32_t firstSlice = -1 ) = 0
Assigns a texture UAV resource view to a specific slot index.

void

SetBufferSRV ( const Buffer * pBuffer, uint32_t slotIndex = 0, uint32_t firstElement = -1, uint32_t numElements = -1 ) = 0
Assigns a buffer SRV resource view to a specific slot index.

void

SetBufferUAV ( const Buffer * pBuffer, uint32_t slotIndex = 0, uint32_t firstElement = -1, uint32_t numElements = -1 ) = 0
Assigns a buffer UAV resource view to a specific slot index.

void

SetSampler (const Sampler * pSampler, uint32_t slotIndex = 0) = 0
Assigns a sampler resource to a specific slot index.

void

SetAccelerationStructure (const TLAS * pTLAS, uint32_t slotIndex = 0) = 0
Assigns an acceleration structure resource to a specific slot index.

void

UpdateRootConstantBuffer ( const BufferAddressInfo * pRootConstantBuffer, uint32_t rootBufferIndex ) = 0
Updates a specified constant root buffer with current buffer address information.

void

UpdateRoot32BitConstant ( const uint32_t numEntries, const uint32_t* pConstData, uint32_t rootBufferIndex ) = 0
Updates one or more root 32-bit constants starting at a specified entry.

void

Bind (CommandList * pCmdList, const PipelineObject * pPipeline) = 0
Binds all resources to the pipeline for GPU workload execution.

void

SetBindTypeOffset (BindingType bindType, uint32_t bindingOffset)
Assigns an offset for binding type. This is used for cauldron backend immediate mode binding.

void

Takes care of automatically re-binding recreated resources to their proper parameter set when resources are resized.

Detailed description

The parameter sets are how resource binding is handled in FidelityFX Cauldron Framework. They setup ahead of time at initialization and then bound each frame prior to pipeline execution to bind all necessary resources to the active pipeline.

Methods

CreateParameterSet

Copied!

static ParameterSet* CreateParameterSet (
    RootSignature * pRootSignature,
    ResourceView * pImmediateViews = nullptr
)

ParameterSet instance creation function. Implemented per api/platform to return the correct internal resource type.


SetRootConstantBufferResource

Copied!

virtual void SetRootConstantBufferResource (
    const GPUResource * pResource,
    const size_t size,
    uint32_t slotIndex
) = 0

Assigns a root constant buffer resource to a specific slot index.


SetTextureSRV

Copied!

virtual void SetTextureSRV (
    const Texture * pTexture,
    ViewDimension  dimension,
    uint32_t slotIndex = 0,
    int32_t mip = -1,
    int32_t arraySize = -1,
    int32_t firstSlice = -1
) = 0

Assigns a texture SRV resource view to a specific slot index.


SetTextureUAV

Copied!

virtual void SetTextureUAV (
    const Texture * pTexture,
    ViewDimension  dimension,
    uint32_t slotIndex = 0,
    int32_t mip = -1,
    int32_t arraySize = -1,
    int32_t firstSlice = -1
) = 0

Assigns a texture UAV resource view to a specific slot index.


SetBufferSRV

Copied!

virtual void SetBufferSRV (
    const Buffer * pBuffer,
    uint32_t slotIndex = 0,
    uint32_t firstElement = -1,
    uint32_t numElements = -1
) = 0

Assigns a buffer SRV resource view to a specific slot index.


SetBufferUAV

Copied!

virtual void SetBufferUAV (
    const Buffer * pBuffer,
    uint32_t slotIndex = 0,
    uint32_t firstElement = -1,
    uint32_t numElements = -1
) = 0

Assigns a buffer UAV resource view to a specific slot index.


SetSampler

Copied!

virtual void SetSampler (const Sampler * pSampler, uint32_t slotIndex = 0) = 0

Assigns a sampler resource to a specific slot index.


SetAccelerationStructure

Copied!

virtual void SetAccelerationStructure (
    const TLAS * pTLAS,
    uint32_t slotIndex = 0
) = 0

Assigns an acceleration structure resource to a specific slot index.


UpdateRootConstantBuffer

Copied!

virtual void UpdateRootConstantBuffer (
    const BufferAddressInfo * pRootConstantBuffer,
    uint32_t rootBufferIndex
) = 0

Updates a specified constant root buffer with current buffer address information.


UpdateRoot32BitConstant

Copied!

virtual void UpdateRoot32BitConstant (
    const uint32_t numEntries,
    const uint32_t* pConstData,
    uint32_t rootBufferIndex
) = 0

Updates one or more root 32-bit constants starting at a specified entry.


Bind

Copied!

virtual void Bind (CommandList * pCmdList, const PipelineObject * pPipeline) = 0

Binds all resources to the pipeline for GPU workload execution.


SetBindTypeOffset

Copied!

void SetBindTypeOffset (BindingType  bindType, uint32_t bindingOffset)

Assigns an offset for binding type. This is used for cauldron backend immediate mode binding.


OnResourceResized

Copied!

virtual void OnResourceResized ()

Takes care of automatically re-binding recreated resources to their proper parameter set when resources are resized.


Related pages

  • Visit the FidelityFX SDK product page for download links and more information.

Looking for more documentation on GPUOpen?

AMD GPUOpen software blogs

Our handy software release blogs will help you make good use of our tools, SDKs, and effects, as well as sharing the latest features with new releases.

GPUOpen Manuals

Don’t miss our manual documentation! And if slide decks are what you’re after, you’ll find 100+ of our finest presentations here.

AMD GPUOpen Performance Guides

The home of great performance and optimization advice for AMD RDNAâ„¢ 2 GPUs, AMD Ryzenâ„¢ CPUs, and so much more.

Getting started: AMD GPUOpen software

New or fairly new to AMD’s tools, libraries, and effects? This is the best place to get started on GPUOpen!

AMD GPUOpen Getting Started Development and Performance

Looking for tips on getting started with developing and/or optimizing your game, whether on AMD hardware or generally? We’ve got you covered!

AMD GPUOpen Technical blogs

Browse our technical blogs, and find valuable advice on developing with AMD hardware, ray tracing, Vulkan®, DirectX®, Unreal Engine, and lots more.

Find out more about our software!

AMD GPUOpen Effects - AMD FidelityFX technologies

Create wonder. No black boxes. Meet the AMD FidelityFX SDK!

AMD GPUOpen Samples

Browse all our useful samples. Perfect for when you’re needing to get started, want to integrate one of our libraries, and much more.

AMD GPUOpen developer SDKs

Discover what our SDK technologies can offer you. Query hardware or software, manage memory, create rendering applications or machine learning, and much more!

AMD GPUOpen Developer Tools

Analyze, Optimize, Profile, Benchmark. We provide you with the developer tools you need to make sure your game is the best it can be!