Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
foray::rtpipe::RtShaderEnumConversions Class Reference

Enum conversion methods. More...

#include <foray_rtshadertypes.hpp>

Static Public Member Functions

static VkShaderStageFlagBits ToStage (RtShaderType shaderType)
 Convert shaderType to VkShaderStageFlagBits stage. RtShaderType::Undefined causes Exception!
 
static RtShaderGroupType ToGroupType (RtShaderType shaderType)
 Get correct group type for shaderType. RtShaderType::Undefined maps to RtShaderGroupType::Undefined.
 
static RtShaderGroupType ToGroupType (VkShaderStageFlagBits stage)
 Get correct group type for VkShaderStageFlagBits stage. Non raytracing shaderstages map to RtShaderGroupType::Undefined.
 
static RtShaderType ToType (VkShaderStageFlagBits stage)
 Get shaderType for VkShaderStageFlagBits stage. Non raytracing shaderstages map to RtShaderType::Undefined.
 

Detailed Description

Enum conversion methods.

Member Function Documentation

◆ ToGroupType() [1/2]

static RtShaderGroupType foray::rtpipe::RtShaderEnumConversions::ToGroupType ( RtShaderType  shaderType)
static

Get correct group type for shaderType. RtShaderType::Undefined maps to RtShaderGroupType::Undefined.

◆ ToGroupType() [2/2]

static RtShaderGroupType foray::rtpipe::RtShaderEnumConversions::ToGroupType ( VkShaderStageFlagBits  stage)
static

Get correct group type for VkShaderStageFlagBits stage. Non raytracing shaderstages map to RtShaderGroupType::Undefined.

◆ ToStage()

static VkShaderStageFlagBits foray::rtpipe::RtShaderEnumConversions::ToStage ( RtShaderType  shaderType)
static

Convert shaderType to VkShaderStageFlagBits stage. RtShaderType::Undefined causes Exception!

◆ ToType()

static RtShaderType foray::rtpipe::RtShaderEnumConversions::ToType ( VkShaderStageFlagBits  stage)
static

Get shaderType for VkShaderStageFlagBits stage. Non raytracing shaderstages map to RtShaderType::Undefined.


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