Expand description
§minwebgl
Minimal set of tools for concise WebGL programming.
§Implemented Features
- Attributes Uploading
- Matrices in Attributes Uploading, row-major
- Instanced Rendering
- Uniforms Buffer Objects
- Vertex Array Objects
§Installation and running
To use this library, you’ll need to compile you application to wasm and then use it from javascript.
§Wasm-pack
You can use wasm-pack:
rustup target add wasm32-unknown-unknown #Install wasm toolchain for rust
cargo install wasm-pack #Install wasm-pack
wasm-pack build --target web #Build your app for plain use on the web
--taget web
option will allow you to load your code in a browser directly( in plain HTML ).
You can mark your main function with #[wasm_bindgen(start)]`` And then use it in html:
<script type="module">
import init from "./pkg/you_crate_name.js";
init();
</script>
§Trunk
Another way is to use trunk - a WASM web application bundler for Rust.
rustup target add wasm32-unknown-unknown #Install wasm toolchain for rust
cargo install trunk #Install truck
trunk serve --release #Build and run your server in release mode
Any files you want to load in your project have to lie in a ‘static’ directory, relatively to the index.html file.
When using trunk you can specify the following, if your file lie elsewhere
<link data-trunk rel="copy-dir" href="assets/" data-target-path="static"/>
Modules§
- _private_
phf_ reexport_ for_ macro_ if_ phf_ feature - Rust-PHF is a library to generate efficient lookup tables at compile time using perfect hash functions.
- additional_
attributes - Documentation for Additional Attributes
- attribute
- Attribute-related.
- browser
- Browser-related.
- buffer
- Buffer-related.
- canvas
- Operations on canvas.
- clone_
dyn - console
- context
- Operations on WebGL context.
- d2
- data_
type - Descriptors of primitive data types.
- derive
- Derive-related.
- diagnostics
- Useful information about your objects
- dom
- Operations on DOM elements.
- error
- Error-related.
- exec_
loop - Loop-related.
- exposed
- Exposed namespace of the module.
- file
- File processing.
- former
- future
- File processing.
- index
- Vertex indices.
- js_sys
- Bindings to JavaScript’s standard, built-in objects, including their methods and properties.
- log
- Logger-related.
- mem
- Memory-related entities.
- model
- obj
- orphan
- Orphan namespace of the module.
- own
- Own namespace of the module.
- panic
- Panic-related.
- prelude
- Prelude to use essentials:
use my_module::prelude::*
. - program
- Program-related entities and functionality.
- shader
- Program-related entities and functionality.
- texture
- Texture related functions
- thiserror
- github crates-io docs-rs
- ubo
- Uniform buffer object related.
- uniform
- Uniform-related.
- vao
- Vertex array object related.
- wasm_
bindgen - Runtime support for the
wasm-bindgen
tool - web_sys
- Raw API bindings for Web APIs
- webgl
- General WebGL things. Unfortunetely
web-sys
does not allow reuse constants, so them are duplicated in this file.
Macros§
- debug
- Logs a message at the debug level.
- debug_
assert_ id - Macro asserts that two expressions are identical to each other. Unlike std::assert_eq it is removed from a release build.
- debug_
assert_ identical - Macro asserts that two expressions are identical to each other. Unlike std::assert_eq it is removed from a release build. Alias of debug_assert_id.
- debug_
assert_ ni - Macro asserts that two expressions are not identical to each other. Unlike std::assert_eq it is removed from a release build.
- debug_
assert_ not_ identical - Macro asserts that two expressions are not identical to each other. Unlike std::assert_eq it is removed from a release build.
- err
- Macro to generate an error descriptor.
- error
- Logs a message at the error level.
- from
- Variadic constructor.
- info
- Logs a message at the info level.
- log
- The standard logging macro.
- log_
enabled - Determines if a message logged at the specified level in that module will be logged.
- mod_
interface - Protocol of modularity unifying interface of a module and introducing layers.
- return_
err - Macro to return an Err( error ) generating error descriptor.
- trace
- Logs a message at the trace level.
- warn
- Logs a message at the warn level.
Structs§
- BTree
MapDefinition - Represents the formation definition for a hash map-like collection within the former framework.
- BTree
MapDefinition Types - Holds the generic parameters for the
BTreeMapDefinition
. - BTree
SetDefinition - Represents the formation definition for a binary tree set-like collection within the former framework.
- BTree
SetDefinition Types - Holds the generic parameters for the
BTreeSetDefinition
. - Basic
Error - baic implementation of generic BasicError
- Binary
Heap Definition - Represents the formation definition for a binary heap-like collection within the former framework.
- Binary
Heap Definition Types - Holds the generic parameters for the
BinaryHeapDefinition
. - Buffer
Descriptor - Describes the attributes of a WebGL buffer.
- Collection
Former - A builder structure for constructing collections with a fluent and flexible interface.
- ForBrowser
- Forming
EndClosure - A wrapper around a closure to be used as a
FormingEnd
. - GL
- The
WebGl2RenderingContext
class. - Hash
MapDefinition - Represents the formation definition for a hash map-like collection within the former framework.
- Hash
MapDefinition Types - Holds the generic parameters for the
HashMapDefinition
. - Hash
SetDefinition - Represents the formation definition for a hash set-like collection within the former framework.
- Hash
SetDefinition Types - Holds the generic parameters for the
HashSetDefinition
. - JsFuture
- A Rust
Future
backed by a JavaScriptPromise
. - JsValue
- Representation of an object owned by JS.
- Linked
List Definition - Represents the formation definition for a list-like collection within the former framework.
- Linked
List Definition Types - Holds the generic parameters for the
LinkedListDefinition
. - Metadata
- Metadata about a log message.
- Metadata
Builder - Builder for
Metadata
. - NoEnd
- A placeholder
FormingEnd
used when no end operation is required or applicable. - Parse
Level Error - The type returned by
from_str
when the string doesn’t match any of the log levels. - Program
From Sources - Compile shaders and link them into a program, give readable diagnostic information if fail.
- Record
- The “payload” of a log message.
- Record
Builder - Builder for
Record
. - Return
Preformed - A
FormingEnd
implementation that directly returns the formed collection as the final product of the forming process. - Return
Storage - A
FormingEnd
implementation that returns the storage itself as the formed entity, disregarding any contextual data. - SetLogger
Error - The type returned by
set_logger
ifset_logger
has already been called. - Shader
Source - Information about shader necessary to compile it.
- Shaders
ForProgram - Set of shaders necessary to compile a GPU program.
- VecDeque
Definition - Represents the formation definition for a vector deque-like collection within the former framework.
- VecDeque
Definition Types - Holds the generic parameters for the
VecDequeDefinition
. - Vector
Data Type - Represents a data type with a specified size.
- Vector
Definition - Represents the formation definition for a vector-like collection within the former framework.
- Vector
Definition Types - Holds the generic parameters for the
VectorDefinition
. - WebGl2
Rendering Context - The
WebGl2RenderingContext
class. - WebGl
Buffer - The
WebGlBuffer
class. - WebGl
Program - The
WebGlProgram
class. - WebGl
Shader - The
WebGlShader
class. - WebGl
Uniform Location - The
WebGlUniformLocation
class. - WebGl
Vertex Array Object - The
WebGlVertexArrayObject
class.
Enums§
- Data
Type - Enum representing basic WebGL data types.
- Level
- An enum representing the available verbosity levels of the logger.
- Level
Filter - An enum representing the available verbosity level filters of the logger.
- Parse
Error - The
ParseError
enum is a collection of all the possible reasons an enum can fail to parse from a string. - Webgl
Error - Represents errors related to dom elements handling.
Constants§
- ACTIVE_
ATTRIBUTES - The
WebGL2RenderingContext.ACTIVE_ATTRIBUTES
const. - ACTIVE_
TEXTURE - The
WebGL2RenderingContext.ACTIVE_TEXTURE
const. - ACTIVE_
UNIFORMS - The
WebGL2RenderingContext.ACTIVE_UNIFORMS
const. - ACTIVE_
UNIFORM_ BLOCKS - The
WebGL2RenderingContext.ACTIVE_UNIFORM_BLOCKS
const. - ALIASED_
LINE_ WIDTH_ RANGE - The
WebGL2RenderingContext.ALIASED_LINE_WIDTH_RANGE
const. - ALIASED_
POINT_ SIZE_ RANGE - The
WebGL2RenderingContext.ALIASED_POINT_SIZE_RANGE
const. - ALPHA
- The
WebGL2RenderingContext.ALPHA
const. - ALPHA_
BITS - The
WebGL2RenderingContext.ALPHA_BITS
const. - ALREADY_
SIGNALED - The
WebGL2RenderingContext.ALREADY_SIGNALED
const. - ALWAYS
- The
WebGL2RenderingContext.ALWAYS
const. - ANY_
SAMPLES_ PASSED - The
WebGL2RenderingContext.ANY_SAMPLES_PASSED
const. - ANY_
SAMPLES_ PASSED_ CONSERVATIVE - The
WebGL2RenderingContext.ANY_SAMPLES_PASSED_CONSERVATIVE
const. - ARRAY_
BUFFER - The
WebGL2RenderingContext.ARRAY_BUFFER
const. - ARRAY_
BUFFER_ BINDING - The
WebGL2RenderingContext.ARRAY_BUFFER_BINDING
const. - ATTACHED_
SHADERS - The
WebGL2RenderingContext.ATTACHED_SHADERS
const. - BACK
- The
WebGL2RenderingContext.BACK
const. - BLEND
- The
WebGL2RenderingContext.BLEND
const. - BLEND_
COLOR - The
WebGL2RenderingContext.BLEND_COLOR
const. - BLEND_
DST_ ALPHA - The
WebGL2RenderingContext.BLEND_DST_ALPHA
const. - BLEND_
DST_ RGB - The
WebGL2RenderingContext.BLEND_DST_RGB
const. - BLEND_
EQUATION - The
WebGL2RenderingContext.BLEND_EQUATION
const. - BLEND_
EQUATION_ ALPHA - The
WebGL2RenderingContext.BLEND_EQUATION_ALPHA
const. - BLEND_
EQUATION_ RGB - The
WebGL2RenderingContext.BLEND_EQUATION_RGB
const. - BLEND_
SRC_ ALPHA - The
WebGL2RenderingContext.BLEND_SRC_ALPHA
const. - BLEND_
SRC_ RGB - The
WebGL2RenderingContext.BLEND_SRC_RGB
const. - BLUE_
BITS - The
WebGL2RenderingContext.BLUE_BITS
const. - BOOL
- The
WebGL2RenderingContext.BOOL
const. - BOOL_
VEC2 - The
WebGL2RenderingContext.BOOL_VEC2
const. - BOOL_
VEC3 - The
WebGL2RenderingContext.BOOL_VEC3
const. - BOOL_
VEC4 - The
WebGL2RenderingContext.BOOL_VEC4
const. - BROWSER_
DEFAULT_ WEBGL - The
WebGL2RenderingContext.BROWSER_DEFAULT_WEBGL
const. - BUFFER_
SIZE - The
WebGL2RenderingContext.BUFFER_SIZE
const. - BUFFER_
USAGE - The
WebGL2RenderingContext.BUFFER_USAGE
const. - BYTE
- The
WebGL2RenderingContext.BYTE
const. - CCW
- The
WebGL2RenderingContext.CCW
const. - CLAMP_
TO_ EDGE - The
WebGL2RenderingContext.CLAMP_TO_EDGE
const. - COLOR
- The
WebGL2RenderingContext.COLOR
const. - COLOR_
ATTACHMEN T0 - The
WebGL2RenderingContext.COLOR_ATTACHMENT0
const. - COLOR_
ATTACHMEN T1 - The
WebGL2RenderingContext.COLOR_ATTACHMENT1
const. - COLOR_
ATTACHMEN T2 - The
WebGL2RenderingContext.COLOR_ATTACHMENT2
const. - COLOR_
ATTACHMEN T3 - The
WebGL2RenderingContext.COLOR_ATTACHMENT3
const. - COLOR_
ATTACHMEN T4 - The
WebGL2RenderingContext.COLOR_ATTACHMENT4
const. - COLOR_
ATTACHMEN T5 - The
WebGL2RenderingContext.COLOR_ATTACHMENT5
const. - COLOR_
ATTACHMEN T6 - The
WebGL2RenderingContext.COLOR_ATTACHMENT6
const. - COLOR_
ATTACHMEN T7 - The
WebGL2RenderingContext.COLOR_ATTACHMENT7
const. - COLOR_
ATTACHMEN T8 - The
WebGL2RenderingContext.COLOR_ATTACHMENT8
const. - COLOR_
ATTACHMEN T9 - The
WebGL2RenderingContext.COLOR_ATTACHMENT9
const. - COLOR_
ATTACHMEN T10 - The
WebGL2RenderingContext.COLOR_ATTACHMENT10
const. - COLOR_
ATTACHMEN T11 - The
WebGL2RenderingContext.COLOR_ATTACHMENT11
const. - COLOR_
ATTACHMEN T12 - The
WebGL2RenderingContext.COLOR_ATTACHMENT12
const. - COLOR_
ATTACHMEN T13 - The
WebGL2RenderingContext.COLOR_ATTACHMENT13
const. - COLOR_
ATTACHMEN T14 - The
WebGL2RenderingContext.COLOR_ATTACHMENT14
const. - COLOR_
ATTACHMEN T15 - The
WebGL2RenderingContext.COLOR_ATTACHMENT15
const. - COLOR_
BUFFER_ BIT - The
WebGL2RenderingContext.COLOR_BUFFER_BIT
const. - COLOR_
CLEAR_ VALUE - The
WebGL2RenderingContext.COLOR_CLEAR_VALUE
const. - COLOR_
WRITEMASK - The
WebGL2RenderingContext.COLOR_WRITEMASK
const. - COMPARE_
REF_ TO_ TEXTURE - The
WebGL2RenderingContext.COMPARE_REF_TO_TEXTURE
const. - COMPILE_
STATUS - The
WebGL2RenderingContext.COMPILE_STATUS
const. - COMPRESSED_
TEXTURE_ FORMATS - The
WebGL2RenderingContext.COMPRESSED_TEXTURE_FORMATS
const. - CONDITION_
SATISFIED - The
WebGL2RenderingContext.CONDITION_SATISFIED
const. - CONSTANT_
ALPHA - The
WebGL2RenderingContext.CONSTANT_ALPHA
const. - CONSTANT_
COLOR - The
WebGL2RenderingContext.CONSTANT_COLOR
const. - CONTEXT_
LOST_ WEBGL - The
WebGL2RenderingContext.CONTEXT_LOST_WEBGL
const. - COPY_
READ_ BUFFER - The
WebGL2RenderingContext.COPY_READ_BUFFER
const. - COPY_
READ_ BUFFER_ BINDING - The
WebGL2RenderingContext.COPY_READ_BUFFER_BINDING
const. - COPY_
WRITE_ BUFFER - The
WebGL2RenderingContext.COPY_WRITE_BUFFER
const. - COPY_
WRITE_ BUFFER_ BINDING - The
WebGL2RenderingContext.COPY_WRITE_BUFFER_BINDING
const. - CULL_
FACE - The
WebGL2RenderingContext.CULL_FACE
const. - CULL_
FACE_ MODE - The
WebGL2RenderingContext.CULL_FACE_MODE
const. - CURRENT_
PROGRAM - The
WebGL2RenderingContext.CURRENT_PROGRAM
const. - CURRENT_
QUERY - The
WebGL2RenderingContext.CURRENT_QUERY
const. - CURRENT_
VERTEX_ ATTRIB - The
WebGL2RenderingContext.CURRENT_VERTEX_ATTRIB
const. - CW
- The
WebGL2RenderingContext.CW
const. - DECR
- The
WebGL2RenderingContext.DECR
const. - DECR_
WRAP - The
WebGL2RenderingContext.DECR_WRAP
const. - DELETE_
STATUS - The
WebGL2RenderingContext.DELETE_STATUS
const. - DEPTH
- The
WebGL2RenderingContext.DEPTH
const. - DEPT
H24_ STENCI L8 - The
WebGL2RenderingContext.DEPTH24_STENCIL8
const. - DEPT
H32F_ STENCI L8 - The
WebGL2RenderingContext.DEPTH32F_STENCIL8
const. - DEPTH_
ATTACHMENT - The
WebGL2RenderingContext.DEPTH_ATTACHMENT
const. - DEPTH_
BITS - The
WebGL2RenderingContext.DEPTH_BITS
const. - DEPTH_
BUFFER_ BIT - The
WebGL2RenderingContext.DEPTH_BUFFER_BIT
const. - DEPTH_
CLEAR_ VALUE - The
WebGL2RenderingContext.DEPTH_CLEAR_VALUE
const. - DEPTH_
COMPONENT - The
WebGL2RenderingContext.DEPTH_COMPONENT
const. - DEPTH_
COMPONEN T16 - The
WebGL2RenderingContext.DEPTH_COMPONENT16
const. - DEPTH_
COMPONEN T24 - The
WebGL2RenderingContext.DEPTH_COMPONENT24
const. - DEPTH_
COMPONEN T32F - The
WebGL2RenderingContext.DEPTH_COMPONENT32F
const. - DEPTH_
FUNC - The
WebGL2RenderingContext.DEPTH_FUNC
const. - DEPTH_
RANGE - The
WebGL2RenderingContext.DEPTH_RANGE
const. - DEPTH_
STENCIL - The
WebGL2RenderingContext.DEPTH_STENCIL
const. - DEPTH_
STENCIL_ ATTACHMENT - The
WebGL2RenderingContext.DEPTH_STENCIL_ATTACHMENT
const. - DEPTH_
TEST - The
WebGL2RenderingContext.DEPTH_TEST
const. - DEPTH_
WRITEMASK - The
WebGL2RenderingContext.DEPTH_WRITEMASK
const. - DITHER
- The
WebGL2RenderingContext.DITHER
const. - DONT_
CARE - The
WebGL2RenderingContext.DONT_CARE
const. - DRAW_
BUFFE R0 - The
WebGL2RenderingContext.DRAW_BUFFER0
const. - DRAW_
BUFFE R1 - The
WebGL2RenderingContext.DRAW_BUFFER1
const. - DRAW_
BUFFE R2 - The
WebGL2RenderingContext.DRAW_BUFFER2
const. - DRAW_
BUFFE R3 - The
WebGL2RenderingContext.DRAW_BUFFER3
const. - DRAW_
BUFFE R4 - The
WebGL2RenderingContext.DRAW_BUFFER4
const. - DRAW_
BUFFE R5 - The
WebGL2RenderingContext.DRAW_BUFFER5
const. - DRAW_
BUFFE R6 - The
WebGL2RenderingContext.DRAW_BUFFER6
const. - DRAW_
BUFFE R7 - The
WebGL2RenderingContext.DRAW_BUFFER7
const. - DRAW_
BUFFE R8 - The
WebGL2RenderingContext.DRAW_BUFFER8
const. - DRAW_
BUFFE R9 - The
WebGL2RenderingContext.DRAW_BUFFER9
const. - DRAW_
BUFFE R10 - The
WebGL2RenderingContext.DRAW_BUFFER10
const. - DRAW_
BUFFE R11 - The
WebGL2RenderingContext.DRAW_BUFFER11
const. - DRAW_
BUFFE R12 - The
WebGL2RenderingContext.DRAW_BUFFER12
const. - DRAW_
BUFFE R13 - The
WebGL2RenderingContext.DRAW_BUFFER13
const. - DRAW_
BUFFE R14 - The
WebGL2RenderingContext.DRAW_BUFFER14
const. - DRAW_
BUFFE R15 - The
WebGL2RenderingContext.DRAW_BUFFER15
const. - DRAW_
FRAMEBUFFER - The
WebGL2RenderingContext.DRAW_FRAMEBUFFER
const. - DRAW_
FRAMEBUFFER_ BINDING - The
WebGL2RenderingContext.DRAW_FRAMEBUFFER_BINDING
const. - DST_
ALPHA - The
WebGL2RenderingContext.DST_ALPHA
const. - DST_
COLOR - The
WebGL2RenderingContext.DST_COLOR
const. - DYNAMIC_
COPY - The
WebGL2RenderingContext.DYNAMIC_COPY
const. - DYNAMIC_
DRAW - The
WebGL2RenderingContext.DYNAMIC_DRAW
const. - DYNAMIC_
READ - The
WebGL2RenderingContext.DYNAMIC_READ
const. - ELEMENT_
ARRAY_ BUFFER - The
WebGL2RenderingContext.ELEMENT_ARRAY_BUFFER
const. - ELEMENT_
ARRAY_ BUFFER_ BINDING - The
WebGL2RenderingContext.ELEMENT_ARRAY_BUFFER_BINDING
const. - EQUAL
- The
WebGL2RenderingContext.EQUAL
const. - FASTEST
- The
WebGL2RenderingContext.FASTEST
const. - FLOAT
- The
WebGL2RenderingContext.FLOAT
const. - FLOAT_
32_ UNSIGNED_ INT_ 24_ 8_ REV - The
WebGL2RenderingContext.FLOAT_32_UNSIGNED_INT_24_8_REV
const. - FLOAT_
MAT2 - The
WebGL2RenderingContext.FLOAT_MAT2
const. - FLOAT_
MAT3 - The
WebGL2RenderingContext.FLOAT_MAT3
const. - FLOAT_
MAT4 - The
WebGL2RenderingContext.FLOAT_MAT4
const. - FLOAT_
MAT2 X3 - The
WebGL2RenderingContext.FLOAT_MAT2x3
const. - FLOAT_
MAT2 X4 - The
WebGL2RenderingContext.FLOAT_MAT2x4
const. - FLOAT_
MAT3 X2 - The
WebGL2RenderingContext.FLOAT_MAT3x2
const. - FLOAT_
MAT3 X4 - The
WebGL2RenderingContext.FLOAT_MAT3x4
const. - FLOAT_
MAT4 X2 - The
WebGL2RenderingContext.FLOAT_MAT4x2
const. - FLOAT_
MAT4 X3 - The
WebGL2RenderingContext.FLOAT_MAT4x3
const. - FLOAT_
VEC2 - The
WebGL2RenderingContext.FLOAT_VEC2
const. - FLOAT_
VEC3 - The
WebGL2RenderingContext.FLOAT_VEC3
const. - FLOAT_
VEC4 - The
WebGL2RenderingContext.FLOAT_VEC4
const. - FRAGMENT_
SHADER - The
WebGL2RenderingContext.FRAGMENT_SHADER
const. - FRAGMENT_
SHADER_ DERIVATIVE_ HINT - The
WebGL2RenderingContext.FRAGMENT_SHADER_DERIVATIVE_HINT
const. - FRAMEBUFFER
- The
WebGL2RenderingContext.FRAMEBUFFER
const. - FRAMEBUFFER_
ATTACHMENT_ ALPHA_ SIZE - The
WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE
const. - FRAMEBUFFER_
ATTACHMENT_ BLUE_ SIZE - The
WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_BLUE_SIZE
const. - FRAMEBUFFER_
ATTACHMENT_ COLOR_ ENCODING - The
WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING
const. - FRAMEBUFFER_
ATTACHMENT_ COMPONENT_ TYPE - The
WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE
const. - FRAMEBUFFER_
ATTACHMENT_ DEPTH_ SIZE - The
WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE
const. - FRAMEBUFFER_
ATTACHMENT_ GREEN_ SIZE - The
WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_GREEN_SIZE
const. - FRAMEBUFFER_
ATTACHMENT_ OBJECT_ NAME - The
WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME
const. - FRAMEBUFFER_
ATTACHMENT_ OBJECT_ TYPE - The
WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE
const. - FRAMEBUFFER_
ATTACHMENT_ RED_ SIZE - The
WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_RED_SIZE
const. - FRAMEBUFFER_
ATTACHMENT_ STENCIL_ SIZE - The
WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE
const. - FRAMEBUFFER_
ATTACHMENT_ TEXTURE_ CUBE_ MAP_ FACE - The
WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE
const. - FRAMEBUFFER_
ATTACHMENT_ TEXTURE_ LAYER - The
WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER
const. - FRAMEBUFFER_
ATTACHMENT_ TEXTURE_ LEVEL - The
WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL
const. - FRAMEBUFFER_
BINDING - The
WebGL2RenderingContext.FRAMEBUFFER_BINDING
const. - FRAMEBUFFER_
COMPLETE - The
WebGL2RenderingContext.FRAMEBUFFER_COMPLETE
const. - FRAMEBUFFER_
DEFAULT - The
WebGL2RenderingContext.FRAMEBUFFER_DEFAULT
const. - FRAMEBUFFER_
INCOMPLETE_ ATTACHMENT - The
WebGL2RenderingContext.FRAMEBUFFER_INCOMPLETE_ATTACHMENT
const. - FRAMEBUFFER_
INCOMPLETE_ DIMENSIONS - The
WebGL2RenderingContext.FRAMEBUFFER_INCOMPLETE_DIMENSIONS
const. - FRAMEBUFFER_
INCOMPLETE_ MISSING_ ATTACHMENT - The
WebGL2RenderingContext.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
const. - FRAMEBUFFER_
INCOMPLETE_ MULTISAMPLE - The
WebGL2RenderingContext.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE
const. - FRAMEBUFFER_
UNSUPPORTED - The
WebGL2RenderingContext.FRAMEBUFFER_UNSUPPORTED
const. - FRONT
- The
WebGL2RenderingContext.FRONT
const. - FRONT_
AND_ BACK - The
WebGL2RenderingContext.FRONT_AND_BACK
const. - FRONT_
FACE - The
WebGL2RenderingContext.FRONT_FACE
const. - FUNC_
ADD - The
WebGL2RenderingContext.FUNC_ADD
const. - FUNC_
REVERSE_ SUBTRACT - The
WebGL2RenderingContext.FUNC_REVERSE_SUBTRACT
const. - FUNC_
SUBTRACT - The
WebGL2RenderingContext.FUNC_SUBTRACT
const. - GENERATE_
MIPMAP_ HINT - The
WebGL2RenderingContext.GENERATE_MIPMAP_HINT
const. - GEQUAL
- The
WebGL2RenderingContext.GEQUAL
const. - GREATER
- The
WebGL2RenderingContext.GREATER
const. - GREEN_
BITS - The
WebGL2RenderingContext.GREEN_BITS
const. - HALF_
FLOAT - The
WebGL2RenderingContext.HALF_FLOAT
const. - HIGH_
FLOAT - The
WebGL2RenderingContext.HIGH_FLOAT
const. - HIGH_
INT - The
WebGL2RenderingContext.HIGH_INT
const. - IMPLEMENTATION_
COLOR_ READ_ FORMAT - The
WebGL2RenderingContext.IMPLEMENTATION_COLOR_READ_FORMAT
const. - IMPLEMENTATION_
COLOR_ READ_ TYPE - The
WebGL2RenderingContext.IMPLEMENTATION_COLOR_READ_TYPE
const. - INCR
- The
WebGL2RenderingContext.INCR
const. - INCR_
WRAP - The
WebGL2RenderingContext.INCR_WRAP
const. - INT
- The
WebGL2RenderingContext.INT
const. - INTERLEAVED_
ATTRIBS - The
WebGL2RenderingContext.INTERLEAVED_ATTRIBS
const. - INT_
2_ 10_ 10_ 10_ REV - The
WebGL2RenderingContext.INT_2_10_10_10_REV
const. - INT_
SAMPLER_ 2D - The
WebGL2RenderingContext.INT_SAMPLER_2D
const. - INT_
SAMPLER_ 2D_ ARRAY - The
WebGL2RenderingContext.INT_SAMPLER_2D_ARRAY
const. - INT_
SAMPLER_ 3D - The
WebGL2RenderingContext.INT_SAMPLER_3D
const. - INT_
SAMPLER_ CUBE - The
WebGL2RenderingContext.INT_SAMPLER_CUBE
const. - INT_
VEC2 - The
WebGL2RenderingContext.INT_VEC2
const. - INT_
VEC3 - The
WebGL2RenderingContext.INT_VEC3
const. - INT_
VEC4 - The
WebGL2RenderingContext.INT_VEC4
const. - INVALID_
ENUM - The
WebGL2RenderingContext.INVALID_ENUM
const. - INVALID_
FRAMEBUFFER_ OPERATION - The
WebGL2RenderingContext.INVALID_FRAMEBUFFER_OPERATION
const. - INVALID_
INDEX - The
WebGL2RenderingContext.INVALID_INDEX
const. - INVALID_
OPERATION - The
WebGL2RenderingContext.INVALID_OPERATION
const. - INVALID_
VALUE - The
WebGL2RenderingContext.INVALID_VALUE
const. - INVERT
- The
WebGL2RenderingContext.INVERT
const. - KEEP
- The
WebGL2RenderingContext.KEEP
const. - LEQUAL
- The
WebGL2RenderingContext.LEQUAL
const. - LESS
- The
WebGL2RenderingContext.LESS
const. - LINEAR
- The
WebGL2RenderingContext.LINEAR
const. - LINEAR_
MIPMAP_ LINEAR - The
WebGL2RenderingContext.LINEAR_MIPMAP_LINEAR
const. - LINEAR_
MIPMAP_ NEAREST - The
WebGL2RenderingContext.LINEAR_MIPMAP_NEAREST
const. - LINES
- The
WebGL2RenderingContext.LINES
const. - LINE_
LOOP - The
WebGL2RenderingContext.LINE_LOOP
const. - LINE_
STRIP - The
WebGL2RenderingContext.LINE_STRIP
const. - LINE_
WIDTH - The
WebGL2RenderingContext.LINE_WIDTH
const. - LINK_
STATUS - The
WebGL2RenderingContext.LINK_STATUS
const. - LOW_
FLOAT - The
WebGL2RenderingContext.LOW_FLOAT
const. - LOW_INT
- The
WebGL2RenderingContext.LOW_INT
const. - LUMINANCE
- The
WebGL2RenderingContext.LUMINANCE
const. - LUMINANCE_
ALPHA - The
WebGL2RenderingContext.LUMINANCE_ALPHA
const. - MAX
- The
WebGL2RenderingContext.MAX
const. - MAX_
3D_ TEXTURE_ SIZE - The
WebGL2RenderingContext.MAX_3D_TEXTURE_SIZE
const. - MAX_
ARRAY_ TEXTURE_ LAYERS - The
WebGL2RenderingContext.MAX_ARRAY_TEXTURE_LAYERS
const. - MAX_
CLIENT_ WAIT_ TIMEOUT_ WEBGL - The
WebGL2RenderingContext.MAX_CLIENT_WAIT_TIMEOUT_WEBGL
const. - MAX_
COLOR_ ATTACHMENTS - The
WebGL2RenderingContext.MAX_COLOR_ATTACHMENTS
const. - MAX_
COMBINED_ FRAGMENT_ UNIFORM_ COMPONENTS - The
WebGL2RenderingContext.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS
const. - MAX_
COMBINED_ TEXTURE_ IMAGE_ UNITS - The
WebGL2RenderingContext.MAX_COMBINED_TEXTURE_IMAGE_UNITS
const. - MAX_
COMBINED_ UNIFORM_ BLOCKS - The
WebGL2RenderingContext.MAX_COMBINED_UNIFORM_BLOCKS
const. - MAX_
COMBINED_ VERTEX_ UNIFORM_ COMPONENTS - The
WebGL2RenderingContext.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS
const. - MAX_
CUBE_ MAP_ TEXTURE_ SIZE - The
WebGL2RenderingContext.MAX_CUBE_MAP_TEXTURE_SIZE
const. - MAX_
DRAW_ BUFFERS - The
WebGL2RenderingContext.MAX_DRAW_BUFFERS
const. - MAX_
ELEMENTS_ INDICES - The
WebGL2RenderingContext.MAX_ELEMENTS_INDICES
const. - MAX_
ELEMENTS_ VERTICES - The
WebGL2RenderingContext.MAX_ELEMENTS_VERTICES
const. - MAX_
ELEMENT_ INDEX - The
WebGL2RenderingContext.MAX_ELEMENT_INDEX
const. - MAX_
FRAGMENT_ INPUT_ COMPONENTS - The
WebGL2RenderingContext.MAX_FRAGMENT_INPUT_COMPONENTS
const. - MAX_
FRAGMENT_ UNIFORM_ BLOCKS - The
WebGL2RenderingContext.MAX_FRAGMENT_UNIFORM_BLOCKS
const. - MAX_
FRAGMENT_ UNIFORM_ COMPONENTS - The
WebGL2RenderingContext.MAX_FRAGMENT_UNIFORM_COMPONENTS
const. - MAX_
FRAGMENT_ UNIFORM_ VECTORS - The
WebGL2RenderingContext.MAX_FRAGMENT_UNIFORM_VECTORS
const. - MAX_
PROGRAM_ TEXEL_ OFFSET - The
WebGL2RenderingContext.MAX_PROGRAM_TEXEL_OFFSET
const. - MAX_
RENDERBUFFER_ SIZE - The
WebGL2RenderingContext.MAX_RENDERBUFFER_SIZE
const. - MAX_
SAMPLES - The
WebGL2RenderingContext.MAX_SAMPLES
const. - MAX_
SERVER_ WAIT_ TIMEOUT - The
WebGL2RenderingContext.MAX_SERVER_WAIT_TIMEOUT
const. - MAX_
TEXTURE_ IMAGE_ UNITS - The
WebGL2RenderingContext.MAX_TEXTURE_IMAGE_UNITS
const. - MAX_
TEXTURE_ LOD_ BIAS - The
WebGL2RenderingContext.MAX_TEXTURE_LOD_BIAS
const. - MAX_
TEXTURE_ SIZE - The
WebGL2RenderingContext.MAX_TEXTURE_SIZE
const. - MAX_
TRANSFORM_ FEEDBACK_ INTERLEAVED_ COMPONENTS - The
WebGL2RenderingContext.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS
const. - MAX_
TRANSFORM_ FEEDBACK_ SEPARATE_ ATTRIBS - The
WebGL2RenderingContext.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS
const. - MAX_
TRANSFORM_ FEEDBACK_ SEPARATE_ COMPONENTS - The
WebGL2RenderingContext.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS
const. - MAX_
UNIFORM_ BLOCK_ SIZE - The
WebGL2RenderingContext.MAX_UNIFORM_BLOCK_SIZE
const. - MAX_
UNIFORM_ BUFFER_ BINDINGS - The
WebGL2RenderingContext.MAX_UNIFORM_BUFFER_BINDINGS
const. - MAX_
VARYING_ COMPONENTS - The
WebGL2RenderingContext.MAX_VARYING_COMPONENTS
const. - MAX_
VARYING_ VECTORS - The
WebGL2RenderingContext.MAX_VARYING_VECTORS
const. - MAX_
VERTEX_ ATTRIBS - The
WebGL2RenderingContext.MAX_VERTEX_ATTRIBS
const. - MAX_
VERTEX_ OUTPUT_ COMPONENTS - The
WebGL2RenderingContext.MAX_VERTEX_OUTPUT_COMPONENTS
const. - MAX_
VERTEX_ TEXTURE_ IMAGE_ UNITS - The
WebGL2RenderingContext.MAX_VERTEX_TEXTURE_IMAGE_UNITS
const. - MAX_
VERTEX_ UNIFORM_ BLOCKS - The
WebGL2RenderingContext.MAX_VERTEX_UNIFORM_BLOCKS
const. - MAX_
VERTEX_ UNIFORM_ COMPONENTS - The
WebGL2RenderingContext.MAX_VERTEX_UNIFORM_COMPONENTS
const. - MAX_
VERTEX_ UNIFORM_ VECTORS - The
WebGL2RenderingContext.MAX_VERTEX_UNIFORM_VECTORS
const. - MAX_
VIEWPORT_ DIMS - The
WebGL2RenderingContext.MAX_VIEWPORT_DIMS
const. - MEDIUM_
FLOAT - The
WebGL2RenderingContext.MEDIUM_FLOAT
const. - MEDIUM_
INT - The
WebGL2RenderingContext.MEDIUM_INT
const. - MIN
- The
WebGL2RenderingContext.MIN
const. - MIN_
PROGRAM_ TEXEL_ OFFSET - The
WebGL2RenderingContext.MIN_PROGRAM_TEXEL_OFFSET
const. - MIRRORED_
REPEAT - The
WebGL2RenderingContext.MIRRORED_REPEAT
const. - NEAREST
- The
WebGL2RenderingContext.NEAREST
const. - NEAREST_
MIPMAP_ LINEAR - The
WebGL2RenderingContext.NEAREST_MIPMAP_LINEAR
const. - NEAREST_
MIPMAP_ NEAREST - The
WebGL2RenderingContext.NEAREST_MIPMAP_NEAREST
const. - NEVER
- The
WebGL2RenderingContext.NEVER
const. - NICEST
- The
WebGL2RenderingContext.NICEST
const. - NONE
- The
WebGL2RenderingContext.NONE
const. - NOTEQUAL
- The
WebGL2RenderingContext.NOTEQUAL
const. - NO_
ERROR - The
WebGL2RenderingContext.NO_ERROR
const. - OBJECT_
TYPE - The
WebGL2RenderingContext.OBJECT_TYPE
const. - ONE
- The
WebGL2RenderingContext.ONE
const. - ONE_
MINUS_ CONSTANT_ ALPHA - The
WebGL2RenderingContext.ONE_MINUS_CONSTANT_ALPHA
const. - ONE_
MINUS_ CONSTANT_ COLOR - The
WebGL2RenderingContext.ONE_MINUS_CONSTANT_COLOR
const. - ONE_
MINUS_ DST_ ALPHA - The
WebGL2RenderingContext.ONE_MINUS_DST_ALPHA
const. - ONE_
MINUS_ DST_ COLOR - The
WebGL2RenderingContext.ONE_MINUS_DST_COLOR
const. - ONE_
MINUS_ SRC_ ALPHA - The
WebGL2RenderingContext.ONE_MINUS_SRC_ALPHA
const. - ONE_
MINUS_ SRC_ COLOR - The
WebGL2RenderingContext.ONE_MINUS_SRC_COLOR
const. - OUT_
OF_ MEMORY - The
WebGL2RenderingContext.OUT_OF_MEMORY
const. - PACK_
ALIGNMENT - The
WebGL2RenderingContext.PACK_ALIGNMENT
const. - PACK_
ROW_ LENGTH - The
WebGL2RenderingContext.PACK_ROW_LENGTH
const. - PACK_
SKIP_ PIXELS - The
WebGL2RenderingContext.PACK_SKIP_PIXELS
const. - PACK_
SKIP_ ROWS - The
WebGL2RenderingContext.PACK_SKIP_ROWS
const. - PIXEL_
PACK_ BUFFER - The
WebGL2RenderingContext.PIXEL_PACK_BUFFER
const. - PIXEL_
PACK_ BUFFER_ BINDING - The
WebGL2RenderingContext.PIXEL_PACK_BUFFER_BINDING
const. - PIXEL_
UNPACK_ BUFFER - The
WebGL2RenderingContext.PIXEL_UNPACK_BUFFER
const. - PIXEL_
UNPACK_ BUFFER_ BINDING - The
WebGL2RenderingContext.PIXEL_UNPACK_BUFFER_BINDING
const. - POINTS
- The
WebGL2RenderingContext.POINTS
const. - POLYGON_
OFFSET_ FACTOR - The
WebGL2RenderingContext.POLYGON_OFFSET_FACTOR
const. - POLYGON_
OFFSET_ FILL - The
WebGL2RenderingContext.POLYGON_OFFSET_FILL
const. - POLYGON_
OFFSET_ UNITS - The
WebGL2RenderingContext.POLYGON_OFFSET_UNITS
const. - QUERY_
RESULT - The
WebGL2RenderingContext.QUERY_RESULT
const. - QUERY_
RESULT_ AVAILABLE - The
WebGL2RenderingContext.QUERY_RESULT_AVAILABLE
const. - R8
- The
WebGL2RenderingContext.R8
const. - R8I
- The
WebGL2RenderingContext.R8I
const. - R8UI
- The
WebGL2RenderingContext.R8UI
const. - R8_
SNORM - The
WebGL2RenderingContext.R8_SNORM
const. - R11F_
G11F_ B10F - The
WebGL2RenderingContext.R11F_G11F_B10F
const. - R16F
- The
WebGL2RenderingContext.R16F
const. - R16I
- The
WebGL2RenderingContext.R16I
const. - R16UI
- The
WebGL2RenderingContext.R16UI
const. - R32F
- The
WebGL2RenderingContext.R32F
const. - R32I
- The
WebGL2RenderingContext.R32I
const. - R32UI
- The
WebGL2RenderingContext.R32UI
const. - RASTERIZER_
DISCARD - The
WebGL2RenderingContext.RASTERIZER_DISCARD
const. - READ_
BUFFER - The
WebGL2RenderingContext.READ_BUFFER
const. - READ_
FRAMEBUFFER - The
WebGL2RenderingContext.READ_FRAMEBUFFER
const. - READ_
FRAMEBUFFER_ BINDING - The
WebGL2RenderingContext.READ_FRAMEBUFFER_BINDING
const. - RED
- The
WebGL2RenderingContext.RED
const. - RED_
BITS - The
WebGL2RenderingContext.RED_BITS
const. - RED_
INTEGER - The
WebGL2RenderingContext.RED_INTEGER
const. - RENDERBUFFER
- The
WebGL2RenderingContext.RENDERBUFFER
const. - RENDERBUFFER_
ALPHA_ SIZE - The
WebGL2RenderingContext.RENDERBUFFER_ALPHA_SIZE
const. - RENDERBUFFER_
BINDING - The
WebGL2RenderingContext.RENDERBUFFER_BINDING
const. - RENDERBUFFER_
BLUE_ SIZE - The
WebGL2RenderingContext.RENDERBUFFER_BLUE_SIZE
const. - RENDERBUFFER_
DEPTH_ SIZE - The
WebGL2RenderingContext.RENDERBUFFER_DEPTH_SIZE
const. - RENDERBUFFER_
GREEN_ SIZE - The
WebGL2RenderingContext.RENDERBUFFER_GREEN_SIZE
const. - RENDERBUFFER_
HEIGHT - The
WebGL2RenderingContext.RENDERBUFFER_HEIGHT
const. - RENDERBUFFER_
INTERNAL_ FORMAT - The
WebGL2RenderingContext.RENDERBUFFER_INTERNAL_FORMAT
const. - RENDERBUFFER_
RED_ SIZE - The
WebGL2RenderingContext.RENDERBUFFER_RED_SIZE
const. - RENDERBUFFER_
SAMPLES - The
WebGL2RenderingContext.RENDERBUFFER_SAMPLES
const. - RENDERBUFFER_
STENCIL_ SIZE - The
WebGL2RenderingContext.RENDERBUFFER_STENCIL_SIZE
const. - RENDERBUFFER_
WIDTH - The
WebGL2RenderingContext.RENDERBUFFER_WIDTH
const. - RENDERER
- The
WebGL2RenderingContext.RENDERER
const. - REPEAT
- The
WebGL2RenderingContext.REPEAT
const. - REPLACE
- The
WebGL2RenderingContext.REPLACE
const. - RG
- The
WebGL2RenderingContext.RG
const. - RG8
- The
WebGL2RenderingContext.RG8
const. - RG8I
- The
WebGL2RenderingContext.RG8I
const. - RG8UI
- The
WebGL2RenderingContext.RG8UI
const. - RG8_
SNORM - The
WebGL2RenderingContext.RG8_SNORM
const. - RG16F
- The
WebGL2RenderingContext.RG16F
const. - RG16I
- The
WebGL2RenderingContext.RG16I
const. - RG16UI
- The
WebGL2RenderingContext.RG16UI
const. - RG32F
- The
WebGL2RenderingContext.RG32F
const. - RG32I
- The
WebGL2RenderingContext.RG32I
const. - RG32UI
- The
WebGL2RenderingContext.RG32UI
const. - RGB
- The
WebGL2RenderingContext.RGB
const. - RGB8
- The
WebGL2RenderingContext.RGB8
const. - RGB5_A1
- The
WebGL2RenderingContext.RGB5_A1
const. - RGB8I
- The
WebGL2RenderingContext.RGB8I
const. - RGB8UI
- The
WebGL2RenderingContext.RGB8UI
const. - RGB8_
SNORM - The
WebGL2RenderingContext.RGB8_SNORM
const. - RGB9_E5
- The
WebGL2RenderingContext.RGB9_E5
const. - RGB10_
A2 - The
WebGL2RenderingContext.RGB10_A2
const. - RGB10_
A2UI - The
WebGL2RenderingContext.RGB10_A2UI
const. - RGB16F
- The
WebGL2RenderingContext.RGB16F
const. - RGB16I
- The
WebGL2RenderingContext.RGB16I
const. - RGB16UI
- The
WebGL2RenderingContext.RGB16UI
const. - RGB32F
- The
WebGL2RenderingContext.RGB32F
const. - RGB32I
- The
WebGL2RenderingContext.RGB32I
const. - RGB32UI
- The
WebGL2RenderingContext.RGB32UI
const. - RGB565
- The
WebGL2RenderingContext.RGB565
const. - RGBA
- The
WebGL2RenderingContext.RGBA
const. - RGBA4
- The
WebGL2RenderingContext.RGBA4
const. - RGBA8
- The
WebGL2RenderingContext.RGBA8
const. - RGBA8I
- The
WebGL2RenderingContext.RGBA8I
const. - RGBA8UI
- The
WebGL2RenderingContext.RGBA8UI
const. - RGBA8_
SNORM - The
WebGL2RenderingContext.RGBA8_SNORM
const. - RGBA16F
- The
WebGL2RenderingContext.RGBA16F
const. - RGBA16I
- The
WebGL2RenderingContext.RGBA16I
const. - RGBA16UI
- The
WebGL2RenderingContext.RGBA16UI
const. - RGBA32F
- The
WebGL2RenderingContext.RGBA32F
const. - RGBA32I
- The
WebGL2RenderingContext.RGBA32I
const. - RGBA32UI
- The
WebGL2RenderingContext.RGBA32UI
const. - RGBA_
INTEGER - The
WebGL2RenderingContext.RGBA_INTEGER
const. - RGB_
INTEGER - The
WebGL2RenderingContext.RGB_INTEGER
const. - RG_
INTEGER - The
WebGL2RenderingContext.RG_INTEGER
const. - SAMPLER_
2D - The
WebGL2RenderingContext.SAMPLER_2D
const. - SAMPLER_
2D_ ARRAY - The
WebGL2RenderingContext.SAMPLER_2D_ARRAY
const. - SAMPLER_
2D_ ARRAY_ SHADOW - The
WebGL2RenderingContext.SAMPLER_2D_ARRAY_SHADOW
const. - SAMPLER_
2D_ SHADOW - The
WebGL2RenderingContext.SAMPLER_2D_SHADOW
const. - SAMPLER_
3D - The
WebGL2RenderingContext.SAMPLER_3D
const. - SAMPLER_
BINDING - The
WebGL2RenderingContext.SAMPLER_BINDING
const. - SAMPLER_
CUBE - The
WebGL2RenderingContext.SAMPLER_CUBE
const. - SAMPLER_
CUBE_ SHADOW - The
WebGL2RenderingContext.SAMPLER_CUBE_SHADOW
const. - SAMPLES
- The
WebGL2RenderingContext.SAMPLES
const. - SAMPLE_
ALPHA_ TO_ COVERAGE - The
WebGL2RenderingContext.SAMPLE_ALPHA_TO_COVERAGE
const. - SAMPLE_
BUFFERS - The
WebGL2RenderingContext.SAMPLE_BUFFERS
const. - SAMPLE_
COVERAGE - The
WebGL2RenderingContext.SAMPLE_COVERAGE
const. - SAMPLE_
COVERAGE_ INVERT - The
WebGL2RenderingContext.SAMPLE_COVERAGE_INVERT
const. - SAMPLE_
COVERAGE_ VALUE - The
WebGL2RenderingContext.SAMPLE_COVERAGE_VALUE
const. - SCISSOR_
BOX - The
WebGL2RenderingContext.SCISSOR_BOX
const. - SCISSOR_
TEST - The
WebGL2RenderingContext.SCISSOR_TEST
const. - SEPARATE_
ATTRIBS - The
WebGL2RenderingContext.SEPARATE_ATTRIBS
const. - SHADER_
TYPE - The
WebGL2RenderingContext.SHADER_TYPE
const. - SHADING_
LANGUAGE_ VERSION - The
WebGL2RenderingContext.SHADING_LANGUAGE_VERSION
const. - SHORT
- The
WebGL2RenderingContext.SHORT
const. - SIGNALED
- The
WebGL2RenderingContext.SIGNALED
const. - SIGNED_
NORMALIZED - The
WebGL2RenderingContext.SIGNED_NORMALIZED
const. - SRC_
ALPHA - The
WebGL2RenderingContext.SRC_ALPHA
const. - SRC_
ALPHA_ SATURATE - The
WebGL2RenderingContext.SRC_ALPHA_SATURATE
const. - SRC_
COLOR - The
WebGL2RenderingContext.SRC_COLOR
const. - SRGB
- The
WebGL2RenderingContext.SRGB
const. - SRGB8
- The
WebGL2RenderingContext.SRGB8
const. - SRGB8_
ALPH A8 - The
WebGL2RenderingContext.SRGB8_ALPHA8
const. - STATIC_
COPY - The
WebGL2RenderingContext.STATIC_COPY
const. - STATIC_
DRAW - The
WebGL2RenderingContext.STATIC_DRAW
const. - STATIC_
MAX_ LEVEL - The statically resolved maximum log level.
- STATIC_
READ - The
WebGL2RenderingContext.STATIC_READ
const. - STENCIL
- The
WebGL2RenderingContext.STENCIL
const. - STENCIL_
ATTACHMENT - The
WebGL2RenderingContext.STENCIL_ATTACHMENT
const. - STENCIL_
BACK_ FAIL - The
WebGL2RenderingContext.STENCIL_BACK_FAIL
const. - STENCIL_
BACK_ FUNC - The
WebGL2RenderingContext.STENCIL_BACK_FUNC
const. - STENCIL_
BACK_ PASS_ DEPTH_ FAIL - The
WebGL2RenderingContext.STENCIL_BACK_PASS_DEPTH_FAIL
const. - STENCIL_
BACK_ PASS_ DEPTH_ PASS - The
WebGL2RenderingContext.STENCIL_BACK_PASS_DEPTH_PASS
const. - STENCIL_
BACK_ REF - The
WebGL2RenderingContext.STENCIL_BACK_REF
const. - STENCIL_
BACK_ VALUE_ MASK - The
WebGL2RenderingContext.STENCIL_BACK_VALUE_MASK
const. - STENCIL_
BACK_ WRITEMASK - The
WebGL2RenderingContext.STENCIL_BACK_WRITEMASK
const. - STENCIL_
BITS - The
WebGL2RenderingContext.STENCIL_BITS
const. - STENCIL_
BUFFER_ BIT - The
WebGL2RenderingContext.STENCIL_BUFFER_BIT
const. - STENCIL_
CLEAR_ VALUE - The
WebGL2RenderingContext.STENCIL_CLEAR_VALUE
const. - STENCIL_
FAIL - The
WebGL2RenderingContext.STENCIL_FAIL
const. - STENCIL_
FUNC - The
WebGL2RenderingContext.STENCIL_FUNC
const. - STENCIL_
INDE X8 - The
WebGL2RenderingContext.STENCIL_INDEX8
const. - STENCIL_
PASS_ DEPTH_ FAIL - The
WebGL2RenderingContext.STENCIL_PASS_DEPTH_FAIL
const. - STENCIL_
PASS_ DEPTH_ PASS - The
WebGL2RenderingContext.STENCIL_PASS_DEPTH_PASS
const. - STENCIL_
REF - The
WebGL2RenderingContext.STENCIL_REF
const. - STENCIL_
TEST - The
WebGL2RenderingContext.STENCIL_TEST
const. - STENCIL_
VALUE_ MASK - The
WebGL2RenderingContext.STENCIL_VALUE_MASK
const. - STENCIL_
WRITEMASK - The
WebGL2RenderingContext.STENCIL_WRITEMASK
const. - STREAM_
COPY - The
WebGL2RenderingContext.STREAM_COPY
const. - STREAM_
DRAW - The
WebGL2RenderingContext.STREAM_DRAW
const. - STREAM_
READ - The
WebGL2RenderingContext.STREAM_READ
const. - SUBPIXEL_
BITS - The
WebGL2RenderingContext.SUBPIXEL_BITS
const. - SYNC_
CONDITION - The
WebGL2RenderingContext.SYNC_CONDITION
const. - SYNC_
FENCE - The
WebGL2RenderingContext.SYNC_FENCE
const. - SYNC_
FLAGS - The
WebGL2RenderingContext.SYNC_FLAGS
const. - SYNC_
FLUSH_ COMMANDS_ BIT - The
WebGL2RenderingContext.SYNC_FLUSH_COMMANDS_BIT
const. - SYNC_
GPU_ COMMANDS_ COMPLETE - The
WebGL2RenderingContext.SYNC_GPU_COMMANDS_COMPLETE
const. - SYNC_
STATUS - The
WebGL2RenderingContext.SYNC_STATUS
const. - TEXTURE
- The
WebGL2RenderingContext.TEXTURE
const. - TEXTUR
E0 - The
WebGL2RenderingContext.TEXTURE0
const. - TEXTUR
E1 - The
WebGL2RenderingContext.TEXTURE1
const. - TEXTUR
E2 - The
WebGL2RenderingContext.TEXTURE2
const. - TEXTUR
E3 - The
WebGL2RenderingContext.TEXTURE3
const. - TEXTUR
E4 - The
WebGL2RenderingContext.TEXTURE4
const. - TEXTUR
E5 - The
WebGL2RenderingContext.TEXTURE5
const. - TEXTUR
E6 - The
WebGL2RenderingContext.TEXTURE6
const. - TEXTUR
E7 - The
WebGL2RenderingContext.TEXTURE7
const. - TEXTUR
E8 - The
WebGL2RenderingContext.TEXTURE8
const. - TEXTUR
E9 - The
WebGL2RenderingContext.TEXTURE9
const. - TEXTUR
E10 - The
WebGL2RenderingContext.TEXTURE10
const. - TEXTUR
E11 - The
WebGL2RenderingContext.TEXTURE11
const. - TEXTUR
E12 - The
WebGL2RenderingContext.TEXTURE12
const. - TEXTUR
E13 - The
WebGL2RenderingContext.TEXTURE13
const. - TEXTUR
E14 - The
WebGL2RenderingContext.TEXTURE14
const. - TEXTUR
E15 - The
WebGL2RenderingContext.TEXTURE15
const. - TEXTUR
E16 - The
WebGL2RenderingContext.TEXTURE16
const. - TEXTUR
E17 - The
WebGL2RenderingContext.TEXTURE17
const. - TEXTUR
E18 - The
WebGL2RenderingContext.TEXTURE18
const. - TEXTUR
E19 - The
WebGL2RenderingContext.TEXTURE19
const. - TEXTUR
E20 - The
WebGL2RenderingContext.TEXTURE20
const. - TEXTUR
E21 - The
WebGL2RenderingContext.TEXTURE21
const. - TEXTUR
E22 - The
WebGL2RenderingContext.TEXTURE22
const. - TEXTUR
E23 - The
WebGL2RenderingContext.TEXTURE23
const. - TEXTUR
E24 - The
WebGL2RenderingContext.TEXTURE24
const. - TEXTUR
E25 - The
WebGL2RenderingContext.TEXTURE25
const. - TEXTUR
E26 - The
WebGL2RenderingContext.TEXTURE26
const. - TEXTUR
E27 - The
WebGL2RenderingContext.TEXTURE27
const. - TEXTUR
E28 - The
WebGL2RenderingContext.TEXTURE28
const. - TEXTUR
E29 - The
WebGL2RenderingContext.TEXTURE29
const. - TEXTUR
E30 - The
WebGL2RenderingContext.TEXTURE30
const. - TEXTUR
E31 - The
WebGL2RenderingContext.TEXTURE31
const. - TEXTURE_
2D - The
WebGL2RenderingContext.TEXTURE_2D
const. - TEXTURE_
2D_ ARRAY - The
WebGL2RenderingContext.TEXTURE_2D_ARRAY
const. - TEXTURE_
3D - The
WebGL2RenderingContext.TEXTURE_3D
const. - TEXTURE_
BASE_ LEVEL - The
WebGL2RenderingContext.TEXTURE_BASE_LEVEL
const. - TEXTURE_
BINDING_ 2D - The
WebGL2RenderingContext.TEXTURE_BINDING_2D
const. - TEXTURE_
BINDING_ 2D_ ARRAY - The
WebGL2RenderingContext.TEXTURE_BINDING_2D_ARRAY
const. - TEXTURE_
BINDING_ 3D - The
WebGL2RenderingContext.TEXTURE_BINDING_3D
const. - TEXTURE_
BINDING_ CUBE_ MAP - The
WebGL2RenderingContext.TEXTURE_BINDING_CUBE_MAP
const. - TEXTURE_
COMPARE_ FUNC - The
WebGL2RenderingContext.TEXTURE_COMPARE_FUNC
const. - TEXTURE_
COMPARE_ MODE - The
WebGL2RenderingContext.TEXTURE_COMPARE_MODE
const. - TEXTURE_
CUBE_ MAP - The
WebGL2RenderingContext.TEXTURE_CUBE_MAP
const. - TEXTURE_
CUBE_ MAP_ NEGATIVE_ X - The
WebGL2RenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_X
const. - TEXTURE_
CUBE_ MAP_ NEGATIVE_ Y - The
WebGL2RenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Y
const. - TEXTURE_
CUBE_ MAP_ NEGATIVE_ Z - The
WebGL2RenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Z
const. - TEXTURE_
CUBE_ MAP_ POSITIVE_ X - The
WebGL2RenderingContext.TEXTURE_CUBE_MAP_POSITIVE_X
const. - TEXTURE_
CUBE_ MAP_ POSITIVE_ Y - The
WebGL2RenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Y
const. - TEXTURE_
CUBE_ MAP_ POSITIVE_ Z - The
WebGL2RenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Z
const. - TEXTURE_
IMMUTABLE_ FORMAT - The
WebGL2RenderingContext.TEXTURE_IMMUTABLE_FORMAT
const. - TEXTURE_
IMMUTABLE_ LEVELS - The
WebGL2RenderingContext.TEXTURE_IMMUTABLE_LEVELS
const. - TEXTURE_
MAG_ FILTER - The
WebGL2RenderingContext.TEXTURE_MAG_FILTER
const. - TEXTURE_
MAX_ LEVEL - The
WebGL2RenderingContext.TEXTURE_MAX_LEVEL
const. - TEXTURE_
MAX_ LOD - The
WebGL2RenderingContext.TEXTURE_MAX_LOD
const. - TEXTURE_
MIN_ FILTER - The
WebGL2RenderingContext.TEXTURE_MIN_FILTER
const. - TEXTURE_
MIN_ LOD - The
WebGL2RenderingContext.TEXTURE_MIN_LOD
const. - TEXTURE_
WRAP_ R - The
WebGL2RenderingContext.TEXTURE_WRAP_R
const. - TEXTURE_
WRAP_ S - The
WebGL2RenderingContext.TEXTURE_WRAP_S
const. - TEXTURE_
WRAP_ T - The
WebGL2RenderingContext.TEXTURE_WRAP_T
const. - TIMEOUT_
EXPIRED - The
WebGL2RenderingContext.TIMEOUT_EXPIRED
const. - TIMEOUT_
IGNORED - The
WebGL2RenderingContext.TIMEOUT_IGNORED
const. - TRANSFORM_
FEEDBACK - The
WebGL2RenderingContext.TRANSFORM_FEEDBACK
const. - TRANSFORM_
FEEDBACK_ ACTIVE - The
WebGL2RenderingContext.TRANSFORM_FEEDBACK_ACTIVE
const. - TRANSFORM_
FEEDBACK_ BINDING - The
WebGL2RenderingContext.TRANSFORM_FEEDBACK_BINDING
const. - TRANSFORM_
FEEDBACK_ BUFFER - The
WebGL2RenderingContext.TRANSFORM_FEEDBACK_BUFFER
const. - TRANSFORM_
FEEDBACK_ BUFFER_ BINDING - The
WebGL2RenderingContext.TRANSFORM_FEEDBACK_BUFFER_BINDING
const. - TRANSFORM_
FEEDBACK_ BUFFER_ MODE - The
WebGL2RenderingContext.TRANSFORM_FEEDBACK_BUFFER_MODE
const. - TRANSFORM_
FEEDBACK_ BUFFER_ SIZE - The
WebGL2RenderingContext.TRANSFORM_FEEDBACK_BUFFER_SIZE
const. - TRANSFORM_
FEEDBACK_ BUFFER_ START - The
WebGL2RenderingContext.TRANSFORM_FEEDBACK_BUFFER_START
const. - TRANSFORM_
FEEDBACK_ PAUSED - The
WebGL2RenderingContext.TRANSFORM_FEEDBACK_PAUSED
const. - TRANSFORM_
FEEDBACK_ PRIMITIVES_ WRITTEN - The
WebGL2RenderingContext.TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN
const. - TRANSFORM_
FEEDBACK_ VARYINGS - The
WebGL2RenderingContext.TRANSFORM_FEEDBACK_VARYINGS
const. - TRIANGLES
- The
WebGL2RenderingContext.TRIANGLES
const. - TRIANGLE_
FAN - The
WebGL2RenderingContext.TRIANGLE_FAN
const. - TRIANGLE_
STRIP - The
WebGL2RenderingContext.TRIANGLE_STRIP
const. - UNIFORM_
ARRAY_ STRIDE - The
WebGL2RenderingContext.UNIFORM_ARRAY_STRIDE
const. - UNIFORM_
BLOCK_ ACTIVE_ UNIFORMS - The
WebGL2RenderingContext.UNIFORM_BLOCK_ACTIVE_UNIFORMS
const. - UNIFORM_
BLOCK_ ACTIVE_ UNIFORM_ INDICES - The
WebGL2RenderingContext.UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES
const. - UNIFORM_
BLOCK_ BINDING - The
WebGL2RenderingContext.UNIFORM_BLOCK_BINDING
const. - UNIFORM_
BLOCK_ DATA_ SIZE - The
WebGL2RenderingContext.UNIFORM_BLOCK_DATA_SIZE
const. - UNIFORM_
BLOCK_ INDEX - The
WebGL2RenderingContext.UNIFORM_BLOCK_INDEX
const. - UNIFORM_
BLOCK_ REFERENCED_ BY_ FRAGMENT_ SHADER - The
WebGL2RenderingContext.UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER
const. - UNIFORM_
BLOCK_ REFERENCED_ BY_ VERTEX_ SHADER - The
WebGL2RenderingContext.UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER
const. - UNIFORM_
BUFFER - The
WebGL2RenderingContext.UNIFORM_BUFFER
const. - UNIFORM_
BUFFER_ BINDING - The
WebGL2RenderingContext.UNIFORM_BUFFER_BINDING
const. - UNIFORM_
BUFFER_ OFFSET_ ALIGNMENT - The
WebGL2RenderingContext.UNIFORM_BUFFER_OFFSET_ALIGNMENT
const. - UNIFORM_
BUFFER_ SIZE - The
WebGL2RenderingContext.UNIFORM_BUFFER_SIZE
const. - UNIFORM_
BUFFER_ START - The
WebGL2RenderingContext.UNIFORM_BUFFER_START
const. - UNIFORM_
IS_ ROW_ MAJOR - The
WebGL2RenderingContext.UNIFORM_IS_ROW_MAJOR
const. - UNIFORM_
MATRIX_ STRIDE - The
WebGL2RenderingContext.UNIFORM_MATRIX_STRIDE
const. - UNIFORM_
OFFSET - The
WebGL2RenderingContext.UNIFORM_OFFSET
const. - UNIFORM_
SIZE - The
WebGL2RenderingContext.UNIFORM_SIZE
const. - UNIFORM_
TYPE - The
WebGL2RenderingContext.UNIFORM_TYPE
const. - UNPACK_
ALIGNMENT - The
WebGL2RenderingContext.UNPACK_ALIGNMENT
const. - UNPACK_
COLORSPACE_ CONVERSION_ WEBGL - The
WebGL2RenderingContext.UNPACK_COLORSPACE_CONVERSION_WEBGL
const. - UNPACK_
FLIP_ Y_ WEBGL - The
WebGL2RenderingContext.UNPACK_FLIP_Y_WEBGL
const. - UNPACK_
IMAGE_ HEIGHT - The
WebGL2RenderingContext.UNPACK_IMAGE_HEIGHT
const. - UNPACK_
PREMULTIPLY_ ALPHA_ WEBGL - The
WebGL2RenderingContext.UNPACK_PREMULTIPLY_ALPHA_WEBGL
const. - UNPACK_
ROW_ LENGTH - The
WebGL2RenderingContext.UNPACK_ROW_LENGTH
const. - UNPACK_
SKIP_ IMAGES - The
WebGL2RenderingContext.UNPACK_SKIP_IMAGES
const. - UNPACK_
SKIP_ PIXELS - The
WebGL2RenderingContext.UNPACK_SKIP_PIXELS
const. - UNPACK_
SKIP_ ROWS - The
WebGL2RenderingContext.UNPACK_SKIP_ROWS
const. - UNSIGNALED
- The
WebGL2RenderingContext.UNSIGNALED
const. - UNSIGNED_
BYTE - The
WebGL2RenderingContext.UNSIGNED_BYTE
const. - UNSIGNED_
INT - The
WebGL2RenderingContext.UNSIGNED_INT
const. - UNSIGNED_
INT_ 2_ 10_ 10_ 10_ REV - The
WebGL2RenderingContext.UNSIGNED_INT_2_10_10_10_REV
const. - UNSIGNED_
INT_ 5_ 9_ 9_ 9_ REV - The
WebGL2RenderingContext.UNSIGNED_INT_5_9_9_9_REV
const. - UNSIGNED_
INT_ 10F_ 11F_ 11F_ REV - The
WebGL2RenderingContext.UNSIGNED_INT_10F_11F_11F_REV
const. - UNSIGNED_
INT_ 24_ 8 - The
WebGL2RenderingContext.UNSIGNED_INT_24_8
const. - UNSIGNED_
INT_ SAMPLER_ 2D - The
WebGL2RenderingContext.UNSIGNED_INT_SAMPLER_2D
const. - UNSIGNED_
INT_ SAMPLER_ 2D_ ARRAY - The
WebGL2RenderingContext.UNSIGNED_INT_SAMPLER_2D_ARRAY
const. - UNSIGNED_
INT_ SAMPLER_ 3D - The
WebGL2RenderingContext.UNSIGNED_INT_SAMPLER_3D
const. - UNSIGNED_
INT_ SAMPLER_ CUBE - The
WebGL2RenderingContext.UNSIGNED_INT_SAMPLER_CUBE
const. - UNSIGNED_
INT_ VEC2 - The
WebGL2RenderingContext.UNSIGNED_INT_VEC2
const. - UNSIGNED_
INT_ VEC3 - The
WebGL2RenderingContext.UNSIGNED_INT_VEC3
const. - UNSIGNED_
INT_ VEC4 - The
WebGL2RenderingContext.UNSIGNED_INT_VEC4
const. - UNSIGNED_
NORMALIZED - The
WebGL2RenderingContext.UNSIGNED_NORMALIZED
const. - UNSIGNED_
SHORT - The
WebGL2RenderingContext.UNSIGNED_SHORT
const. - UNSIGNED_
SHORT_ 4_ 4_ 4_ 4 - The
WebGL2RenderingContext.UNSIGNED_SHORT_4_4_4_4
const. - UNSIGNED_
SHORT_ 5_ 5_ 5_ 1 - The
WebGL2RenderingContext.UNSIGNED_SHORT_5_5_5_1
const. - UNSIGNED_
SHORT_ 5_ 6_ 5 - The
WebGL2RenderingContext.UNSIGNED_SHORT_5_6_5
const. - VALIDATE_
STATUS - The
WebGL2RenderingContext.VALIDATE_STATUS
const. - VENDOR
- The
WebGL2RenderingContext.VENDOR
const. - VERSION
- The
WebGL2RenderingContext.VERSION
const. - VERTEX_
ARRAY_ BINDING - The
WebGL2RenderingContext.VERTEX_ARRAY_BINDING
const. - VERTEX_
ATTRIB_ ARRAY_ BUFFER_ BINDING - The
WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
const. - VERTEX_
ATTRIB_ ARRAY_ DIVISOR - The
WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_DIVISOR
const. - VERTEX_
ATTRIB_ ARRAY_ ENABLED - The
WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_ENABLED
const. - VERTEX_
ATTRIB_ ARRAY_ INTEGER - The
WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_INTEGER
const. - VERTEX_
ATTRIB_ ARRAY_ NORMALIZED - The
WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_NORMALIZED
const. - VERTEX_
ATTRIB_ ARRAY_ POINTER - The
WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_POINTER
const. - VERTEX_
ATTRIB_ ARRAY_ SIZE - The
WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_SIZE
const. - VERTEX_
ATTRIB_ ARRAY_ STRIDE - The
WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_STRIDE
const. - VERTEX_
ATTRIB_ ARRAY_ TYPE - The
WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_TYPE
const. - VERTEX_
SHADER - The
WebGL2RenderingContext.VERTEX_SHADER
const. - VIEWPORT
- The
WebGL2RenderingContext.VIEWPORT
const. - WAIT_
FAILED - The
WebGL2RenderingContext.WAIT_FAILED
const. - ZERO
- The
WebGL2RenderingContext.ZERO
const.
Traits§
- Add
- The addition operator
+
. - AddAssign
- The addition assignment operator
+=
. - AsBytes
- Trait for converting data to byte slices.
- AsStatic
Ref Deprecated - A cheap reference-to-reference conversion. Used to convert a value to a
reference value with
'static
lifetime within generic code. - Assign
- Provides a generic interface for setting a component of a certain type on an object.
- Assign
With Type - The
AssignWithType
trait provides a mechanism to set a component on an object, utilizing the type information explicitly. This trait extends the functionality ofAssign
by allowing implementers to specify the component’s type at the method call site, enhancing expressiveness in code that manipulates object states. - BTree
MapExt - Provides an extension method for hash maps to facilitate the use of the builder pattern.
- BTree
SetExt - Provides an extension method for binary tree sets to facilitate the use of the builder pattern.
- Binary
Heap Ext - Provides an extension method for binary heaps to facilitate the use of the builder pattern.
- Clone
Dyn - A trait to upcast a clonable entity and clone it. It’s implemented for all entities which can be cloned.
- Collection
- Represents a collection by defining the types of entries and values it handles.
- Collection
Add - Provides functionality to add individual entries to a collection.
- Collection
Assign - Defines the capability to replace all entries in a collection with a new set of entries.
- Collection
ValTo Entry - Provides a mechanism for transforming a value back into a collection-specific entry format.
- Debug
Log - Div
- The division operator
/
. - DivAssign
- The division assignment operator
/=
. - Entity
ToDefinition - Maps a type of entity to its corresponding former definition. This trait provides a linkage between the entity and its definition, allowing the formation logic to understand what definition to apply during the formation process.
- Entity
ToDefinition Types - Provides a mapping between a type of entity and its associated formation type definitions.
- Entity
ToFormer - Maps a type of entity to its corresponding former. This trait binds an entity type to a specific former, facilitating the use of custom formers in complex formation scenarios.
- Entity
ToStorage - Maps a type of entity to its storage type. This trait defines what storage structure is used to hold the interim state of an entity during its formation.
- Entry
ToVal - Facilitates the conversion of collection entries to their corresponding value representations.
- Enum
Count - A trait for capturing the number of variants in Enum. This trait can be autoderived by
strum_macros
. - Enum
Message - Associates additional pieces of information with an Enum. This can be
autoimplemented by deriving
EnumMessage
and annotating your variants with#[strum(message="...")]
. - Enum
Property EnumProperty
is a trait that makes it possible to store additional information with enum variants. This trait is designed to be used with the macro of the same name in thestrum_macros
crate. Currently, the only string literals are supported in attributes, the other methods will be implemented as additional attribute types become stabilized.- ErrWith
- This trait allows adding extra context or information to an error, creating a tuple of the additional context and the original error. This is particularly useful for error handling when you want to include more details in the error without losing the original error value.
- Error
Error
is a trait representing the basic expectations for error values, i.e., values of typeE
inResult<T, E>
.- Error
Trait Error
is a trait representing the basic expectations for error values, i.e., values of typeE
inResult<T, E>
.- Former
Begin - A trait for initiating a structured subforming process with contextual and intermediary storage linkage.
- Former
Definition - Expands on
FormerDefinitionTypes
by incorporating an ending mechanism for the formation process. This trait connects the formation types with a specific endpoint, defining how the formation process concludes, including any necessary transformations or validations. - Former
Definition Types - Defines the fundamental components involved in the formation of an entity. This trait specifies the types of storage, the formed entity, and the context used during the formation process.
- Former
Mutator - Provides a mechanism for mutating the context and storage just before the forming process is completed.
- Forming
End - Defines a handler for the end of a subforming process, enabling the return of the original context.
- From1
- Constructor with single argument.
- From2
- Constructor with two arguments.
- From3
- Constructor with three arguments.
- Hash
MapExt - Provides an extension method for hash maps to facilitate the use of the builder pattern.
- Hash
SetExt - Provides an extension method for
HashSet
to facilitate the use of the builder pattern. - Into
- A value-to-value conversion that consumes the input value. The
opposite of
From
. - Into1
- value-to-value conversion that consumes the input value. Change left and rught, but keep semantic of `From1``.
- Into
Enum Iterator - This trait designates that an
Enum
can be iterated over. It can be auto generated usingstrum_macros
on your behalf. - Into
Iterator - Conversion into an
Iterator
. - Into
Vector Data Type - Trait for converting types into
VectorDataType
. - JsCast
- A trait for checked and unchecked casting between JS types.
- Linked
List Ext - Provides an extension method for lists to facilitate the use of the builder pattern.
- Log
- A trait encapsulating the operations required of a logger.
- Mul
- The multiplication operator
*
. - MulAssign
- The multiplication assignment operator
*=
. - Option
Ext - Extension trait to provide a method for setting a component on an
Option<Self>
if theOption
is currentlyNone
. If theOption
isSome
, the method will delegate to theAssign
trait’sassign
method. - Pod
- Marker trait for “plain old data”.
- Storage
- Defines the storage interface for entities being constructed using a forming pattern.
- Storage
Preform - Provides a mechanism to finalize the forming process by converting storage into its final formed state.
- Sub
- The subtraction operator
-
. - SubAssign
- The subtraction assignment operator
-=
. - Sum
- Trait to represent types that can be created by summing up an iterator.
- TryInto
- An attempted conversion that consumes
self
, which may or may not be expensive. - Uniform
Matrix Upload - Trait for uploading matrix uniform data to a WebGL shader.
- Uniform
Upload - Trait for uploading uniform data to a WebGL shader.
- ValTo
Entry - Facilitates the conversion of values back into entries for specific collection types.
- Variant
Iterator - Variant
Metadata - Variant
Names - A trait for retrieving the names of each variant in Enum. This trait can
be autoderived by
strum_macros
. - VecDeque
Ext - Provides an extension method for vector deques to facilitate the use of the builder pattern.
- VecExt
- Provides an extension method for vectors to facilitate the use of the builder pattern.
Functions§
- clone
- True clone which is applicable not only to clonable entities, but to trait objects implementing CloneDyn.
- clone_
into_ box - Clone boxed dyn.
- create
- Creates a new WebGL buffer.
- future_
to_ promise - Converts a Rust
Future
into a JavaScriptPromise
. - logger
- Returns a reference to the logger.
- max_
level - Returns the current maximum log level.
- request_
animation_ frame - set_
boxed_ logger - Sets the global logger to a
Box<Log>
. - set_
logger - Sets the global logger to a
&'static Log
. - set_
logger_ ⚠racy - A thread-unsafe version of
set_logger
. - set_
max_ level - Sets the global maximum log level.
- set_
max_ ⚠level_ racy - A thread-unsafe version of
set_max_level
. - spawn_
local - Runs a Rust
Future
on the current thread. - upload
- Uploads data to a WebGL ARRAY_BUFFER.
- upload
- Uploads data to a WebGL ELEMENT_ARRAY_BUFFER.
Type Aliases§
- BTree
MapFormer - Provides a streamlined builder interface for constructing hash map-like collections.
- BTree
SetFormer - Provides a streamlined builder interface for constructing binary tree set-like collections.
- Binary
Heap Former - Provides a streamlined builder interface for constructing binary heap-like collections.
- Hash
MapFormer - Provides a streamlined builder interface for constructing hash map-like collections.
- Hash
SetFormer - Provides a concise alias for
CollectionFormer
configured specifically forHashSet
-like collections. - Linked
List Former - Provides a streamlined builder interface for constructing list-like collections.
- Result
With Report - A type alias for a
Result
that contains an error which is a tuple of a report and an original error. - VecDeque
Former - Provides a streamlined builder interface for constructing vector deque-like collections.
- Vector
Former - Provides a streamlined builder interface for constructing vector-like collections.
Attribute Macros§
- clone_
dyn - Derive macro to generate former for a structure. Former is variation of Builder Pattern.
- phantom
- Provides an automatic
PhantomData
field for a struct based on its generic types.
Derive Macros§
- Add
- What
#[derive(Add)]
generates - AddAssign
- What
#[derive(AddAssign)]
generates - AsMut
- Derive macro to implement AsMut when-ever it’s possible to do automatically.
- AsRef
- Derive macro to implement AsRef when-ever it’s possible to do automatically.
- AsRef
Str - Converts enum variants to
&'static str
. - AsStatic
Str - Assign
- Derives the
Assign
trait for struct fields, allowing each field to be set with a value that can be converted into the field’s type. - Component
From - Macro to implement
From
for each component (field) of a structure. This macro simplifies the creation ofFrom
trait implementations for struct fields, enabling easy conversion from a struct reference to its field types. - Components
Assign - Derives the
ComponentsAssign
trait for a struct, enablingcomponents_assign
which set all fields at once. - Constructor
- What
#[derive(Constructor)]
generates - Deref
- Derive macro to implement Deref when-ever it’s possible to do automatically.
- Deref
Mut - Derive macro to implement Deref when-ever it’s possible to do automatically.
- Display
- Div
- What
#[derive(Mul)]
generates - DivAssign
- What
#[derive(MulAssign)]
generates - Enum
Count - Add a constant
usize
equal to the number of variants. - Enum
Discriminants - Generate a new type with only the discriminant names.
- EnumIs
- Generated
is_*()
methods for each variant. E.g.Color.is_red()
. - Enum
Iter - Creates a new type that iterates of the variants of an enum.
- Enum
Message - Add a verbose message to an enum variant.
- Enum
Property - Add custom properties to enum variants.
- Enum
String - Converts strings to enum variants based on their name.
- Enum
TryAs - Generated
try_as_*()
methods for all tuple-style variants. E.g.Message.try_as_write()
. - Enum
Variant Names - Implements
Strum::VariantNames
which adds an associated constantVARIANTS
which is an array of discriminant names. - Error
- Using
#[derive(Error)]
- Former
- Derive macro for generating a
Former
struct, applying a Builder Pattern to the annotated struct. - From
- Provides an automatic
From
implementation for struct wrapping a single value. - From
Components - A procedural macro to automatically derive the
From<T>
trait implementation for a struct, enabling instances of one type to be converted from instances of another type. - From
Repr - Add a function to enum that allows accessing variants by its discriminant
- FromStr
- Index
- Provides an automatic Index trait implementation when-ever it’s possible.
- Index
Mut - Provides an automatic IndexMut trait implementation when-ever it’s possible.
- Inner
From - Derive macro to implement From converting outer type into inner when-ever it’s possible to do automatically.
- Into
- What
#[derive(Into)]
generates - Into
Iterator - Using
#[derive(IntoIterator)]
- Into
Static Str - Implements
From<MyEnum> for &'static str
on an enum. - IsVariant
- What
#[derive(IsVariant)]
generates - Mul
- What
#[derive(Mul)]
generates - MulAssign
- What
#[derive(MulAssign)]
generates - New
- Provides an automatic
new
implementation for struct wrapping a single value. - Not
- Provides an automatic Not trait implementation for struct.
- Pod
- Derive the
Pod
trait for a struct - Sub
- What
#[derive(Add)]
generates - SubAssign
- What
#[derive(AddAssign)]
generates - Sum
- Using
#[derive(Sum)]
- ToString
- implements
std::string::ToString
on an enum - TryInto
- What
#[derive(TryInto)]
generates - Unwrap
- What
#[derive(Unwrap)]
generates - Variadic
From - The
derive_variadic_from
macro is designed to provide a way to implement theFrom
-like traits for structs with a variable number of fields, allowing them to be constructed from tuples of different lengths or from individual arguments. This functionality is particularly useful for creating flexible constructors that enable different methods of instantiation for a struct. By automating the implementation of traits, this macro reduces boilerplate code and enhances code readability and maintainability.