CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::GPUImageResourceBinding Struct Reference

#include <CeresEngine/RenderAPI/GPUResourceSet.hpp>

Static Public Member Functions

template<typename Processor >
static constexpr void reflect (Processor &&RTTI)
 Executes the given processor for every field of the struct.
 

Public Attributes

GPUImagePtr image = nullptr
 A pointer to the resource resource to be bound.
 
GPUSamplerPtr sampler = nullptr
 An optional sampler to be used when sampling from the image on the shader.
 
GPUImageViewDescriptor imageView
 A descriptor that describes the region of the image to be bound.
 

Member Function Documentation

◆ reflect()

template<typename Processor >
static constexpr void CeresEngine::GPUImageResourceBinding::reflect ( Processor &&  RTTI)
inlinestaticconstexpr

Executes the given processor for every field of the struct.

Parameters
RTTIThe processor to be ran for every field.

Member Data Documentation

◆ image

GPUImagePtr CeresEngine::GPUImageResourceBinding::image = nullptr

A pointer to the resource resource to be bound.

◆ imageView

GPUImageViewDescriptor CeresEngine::GPUImageResourceBinding::imageView
Initial value:
{
.subresource{
.numArrayLayers = 0,
.numMipLevels = 0,
},
}

A descriptor that describes the region of the image to be bound.

This is only used it the resource is a Image resource.

◆ sampler

GPUSamplerPtr CeresEngine::GPUImageResourceBinding::sampler = nullptr

An optional sampler to be used when sampling from the image on the shader.

If the sampler is not set, a default one may be provided by the render API.


The documentation for this struct was generated from the following file: