Loading...
Searching...
No Matches
score::gfx::Sampler Struct Reference

Stores a sampler and the texture currently associated with it. More...

Detailed Description

Stores a sampler and the texture currently associated with it.

fallback is the view-type-matched empty texture to bind when texture becomes null (no upstream, feedback-loop short, disconnect race). It MUST be one of RenderList::emptyTexture() / emptyTexture3D() / emptyTextureCube() / emptyTextureArray() so the bound view type matches the shader's sampler declaration. Leaving this null is only safe for plain sampler2D slots — a samplerCube / sampler3D / sampler2DArray slot with a null fallback will trip Vulkan viewType validation or, if the fallback path upstream also produced null, crash with a VK_NULL_HANDLE descriptor write.

Public Attributes

QRhiSampler * sampler {}
 
QRhiTexture * texture {}
 
QRhiTexture * fallback {}
 

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