egui.wgsl
Bindings
transform
#image_texture
#Shader defs requirments:
🟢 BINDLESS
@group(1)
@binding(0)
var
image_texture:
binding_array<texture_2d<f32>>
image_sampler
#Shader defs requirments:
🟢 BINDLESS
@group(1)
@binding(1)
var
image_sampler:
binding_array<sampler>
image_texture
#Shader defs requirments:
🔴 BINDLESS
@group(1)
@binding(0)
var
image_texture:
texture_2d<f32>
image_sampler
#Shader defs requirments:
🔴 BINDLESS
Structures
Transform
#VertexInput
#VertexOutput
#Functions
linear_from_gamma_rgb
#gamma_from_linear_rgb
#0-1 sRGB gamma from 0-1 linear.
gamma_from_linear_rgba
#0-1 sRGBA gamma from 0-1 linear.
vs_main
#
@vertex
Processes each 3D point in a model before it's drawn
fs_main
#
@fragment
Calculates the final color of each pixel on the screen
0-1 linear from 0-1 sRGB gamma.