Plasma Engine  2.0
Loading...
Searching...
No Matches
plFallbackResourcesVulkan Class Reference

Creates fallback resources in case the high-level renderer did not map a resource to a descriptor slot. #TODO_VULKAN: Although the class has 'Vulkan' in the name, it could be made GAL agnostic by just returning the base class of the resource views and then it will work for any device type so it could be moved to RendererFoundation if needed for another GAL implementation. More...

#include <FallbackResourcesVulkan.h>

Static Public Member Functions

static const plGALTextureResourceViewVulkanGetFallbackTextureResourceView (plGALShaderResourceType::Enum descriptorType, plGALShaderTextureType::Enum textureType, bool bDepth)
 
static const plGALBufferResourceViewVulkanGetFallbackBufferResourceView (plGALShaderResourceType::Enum descriptorType)
 
static const plGALTextureUnorderedAccessViewVulkanGetFallbackTextureUnorderedAccessView (plGALShaderResourceType::Enum descriptorType, plGALShaderTextureType::Enum textureType)
 
static const plGALBufferUnorderedAccessViewVulkanGetFallbackBufferUnorderedAccessView (plGALShaderResourceType::Enum descriptorType)
 

Detailed Description

Creates fallback resources in case the high-level renderer did not map a resource to a descriptor slot. #TODO_VULKAN: Although the class has 'Vulkan' in the name, it could be made GAL agnostic by just returning the base class of the resource views and then it will work for any device type so it could be moved to RendererFoundation if needed for another GAL implementation.

Member Function Documentation

◆ GetFallbackTextureResourceView()

const plGALTextureResourceViewVulkan * plFallbackResourcesVulkan::GetFallbackTextureResourceView ( plGALShaderResourceType::Enum descriptorType,
plGALShaderTextureType::Enum textureType,
bool bDepth )
static

Returns a fallback resource for the given shader resource type.

Parameters
descriptorTypeThe shader resource descriptor for which a compatible fallback resource is requested.
textureTypeIn case descriptorType is a texture, this specifies the texture type.
bDepthWhether the shader resource is using a depth sampler.
Returns

The documentation for this class was generated from the following files: