Skip to main content

Module glsl

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Β§

conv πŸ”’
Contains simple 1:1 conversion functions.
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
writer πŸ”’
Contains the Writer type.

StructsΒ§

Features
Structure used to encode additions to GLSL that aren’t supported by all versions.
IdGenerator πŸ”’
Helper structure that generates a number
ImmediateItem
All information to bind a single uniform value to the shader.
Options
Configuration used in the Writer.
PipelineOptions
A subset of options meant to be changed per pipeline.
ReflectionInfo
Reflection info for texture mappings and uniforms.
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Β§

is_value_init_supported πŸ”’
supported_capabilities

Type AliasesΒ§

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