Struct ShaderVersion

Struct Documentation

struct ShaderVersion

Structure describing the version information for a given shader.

For HLSL, the shader profile can be inferred from {type_major_minor}; for example, {type=kPixel, major=5, minor=0} corresponds to "ps_5_0". Shading models that don't use a minor version will have all of their version information encoded into the "major" field.

Public Types

enum ProgramType

Values:

enumerator kPixel
enumerator kVertex
enumerator kGeometry
enumerator kHull
enumerator kDomain
enumerator kCompute
enumerator kLibrary
enumerator kRayGeneration
enumerator kIntersection
enumerator kAnyHit
enumerator kClosestHit
enumerator kMiss
enumerator kCallable
enumerator kMesh
enumerator kAmplification
enumerator kUnknownProgramType

Public Members

ProgramType type = kUnknownProgramType
uint16_t major = 0
uint16_t minor = 0