Module glsl

Source
Expand description

Backend for GLSL (OpenGL Shading Language).

The main structure is Writer, it maintains internal state that is used to output a Module into glsl

Β§Supported versions

Β§Core

  • 330
  • 400
  • 410
  • 420
  • 430
  • 450

Β§ES

  • 300
  • 310

ModulesΒ§

features πŸ”’
Contains the features related code and the features querying method
keywords πŸ”’
Contains a constant with a slice of all the reserved keywords RESERVED_KEYWORDS

StructsΒ§

BindingMapSerialization πŸ”’
Features
Structure used to encode additions to GLSL that aren’t supported by all versions.
IdGenerator πŸ”’
Helper structure that generates a number
Options
Configuration used in the Writer.
PipelineOptions
A subset of options meant to be changed per pipeline.
PushConstantItem
All information to bind a single uniform value to the shader.
ReflectionInfo
Reflection info for texture mappings and uniforms.
ScalarString πŸ”’
Structure returned by glsl_scalar
TextureMapping
Mapping between a texture and its sampler, if it exists.
VaryingLocation
VaryingName πŸ”’
Helper wrapper used to get a name for a varying
VaryingOptions πŸ”’
Assorted options needed for generating varyings.
Writer
Writer responsible for all code generation.
WriterFlags
Configuration flags for the Writer.

EnumsΒ§

BinaryOperation πŸ”’
Binary operation with a different logic on the GLSL side.
Error
A GLSL compilation error.
Version
A GLSL version.

ConstantsΒ§

CLAMPED_LOD_SUFFIX πŸ”’
The suffix of the variable that will hold the calculated clamped level of detail for bounds checking in ImageLoad
FIRST_INSTANCE_BINDING
FREXP_FUNCTION πŸ”’
MODF_FUNCTION πŸ”’
SUPPORTED_CORE_VERSIONS
List of supported core GLSL versions.
SUPPORTED_ES_VERSIONS
List of supported es GLSL versions.

FunctionsΒ§

deserialize_binding_map πŸ”’
glsl_built_in πŸ”’
Helper function that returns the glsl variable name for a builtin
glsl_dimension πŸ”’
Helper function that returns the glsl dimension string of ImageDimension
glsl_interpolation πŸ”’
Helper function that returns the string corresponding to the glsl interpolation qualifier
glsl_sampling πŸ”’
Return the GLSL auxiliary qualifier for the given sampling value.
glsl_scalar πŸ”’
Helper function that returns scalar related strings
glsl_storage_format πŸ”’
Helper function that returns the glsl storage format string of StorageFormat
glsl_storage_qualifier πŸ”’
Helper function that returns the string corresponding to the address space
is_value_init_supported πŸ”’

Type AliasesΒ§

BackendResult πŸ”’
Shorthand result used internally by the backend
BindingMap
Mapping between resources and bindings.