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
#BindlessOffset
#Functions
linear_from_gamma_rgb
#0-1 linear from 0-1 sRGB gamma.
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
Fix for DX12 backend in wgpu which appears to only support struct push constants wgpu::backend::wgpu_core: Shader translation error for stage ShaderStages(FRAGMENT): HLSL: Unimplemented(“push-constant ‘offset’ has non-struct type; tracked by: https://github.com/gfx-rs/wgpu/issues/5683”)