class GpuParametersSetBase

Contains functionality common for both main and render thread versions of GpuParameterSet.

Public

Methods

~GpuParametersSetBase

virtual ~GpuParametersSetBase() noexcept = default

GetLayout

SPtr<GpuPipelineParameterSetLayout> GetLayout() const

Gets the object that contains the processed information about all parameters.

GetSet

u32 GetSet() const

Returns the set that this object is responsible binding parameters for.

HasParameter

bool HasParameter(const StringView &name) const

Checks if parameter with the specified name exists.

HasSampledTexture

bool HasSampledTexture(const StringView &name) const

Checks if texture parameter with the specified name exists.

HasStorageTexture

bool HasStorageTexture(const StringView &name) const

Checks if load/store texture parameter with the specified name exists.

HasStorageBuffer

bool HasStorageBuffer(const StringView &name) const

Checks if buffer parameter with the specified name exists.

HasSamplerState

bool HasSamplerState(const StringView &name) const

Checks if sampler state parameter with the specified name exists.

HasUniformBuffer

bool HasUniformBuffer(const StringView &name) const

Checks if a uniform buffer with the specified name exists for the specific GPU program type.

MarkRenderProxyDataDirtyInternal

virtual void MarkRenderProxyDataDirtyInternal()

Marks the main thread object as dirty, causing it to sync its contents with its render thread counterpart.

MarkResourcesDirtyInternal

virtual void MarkResourcesDirtyInternal()

Marks the resource dependencies list as dirty and schedules it for rebuild.

Protected

Constructors

GpuParametersSetBase

GpuParametersSetBase(const SPtr<GpuPipelineParameterSetLayout> &parameterSetLayout, u32 setIndex)

Fields

mParameterSetLayout

SPtr<GpuPipelineParameterSetLayout> mParameterSetLayout

mSet

u32 mSet