Advanced search tips: use spaces to require multiple terms (AND), | for alternatives (OR), wrap phrases in quotes (="a b"), =term for exact match, 'term to include, !term to exclude, ^term to match prefix, !^term to exclude prefix, .ext$ to match suffix, and !.ext$ to exclude suffix.

gaussian.wgsl

Bindings

sorted_entries

#

Shader defs requirments:

🟢 BUFFER_STORAGE

@group(3)
@binding(0)
var<storage, read> sorted_entries: array<Entry>

sorted_entries

#

Shader defs requirments:

šŸ”“ BUFFER_STORAGE

@group(3)
@binding(0)
var sorted_entries: texture_2d<u32>

Structures

GaussianVertexOutput

#
struct GaussianVertexOutput {
@builtin(position)
position: vec4<f32> , 🟢 WEBGL2
@location(0)
color: vec4<f32> , 🟢 WEBGL2
@location(1)
uv: vec2<f32> , 🟢 WEBGL2
@location(2)
local_to_pixel_u: vec3<f32> , 🟢 WEBGL2, 🟢 GAUSSIAN_2D
@location(3)
local_to_pixel_v: vec3<f32> , 🟢 WEBGL2, 🟢 GAUSSIAN_2D
@location(4)
local_to_pixel_w: vec3<f32> , 🟢 WEBGL2, 🟢 GAUSSIAN_2D
@location(5)
mean_2d: vec2<f32> , 🟢 WEBGL2, 🟢 GAUSSIAN_2D
@location(6)
radius: vec2<f32> , 🟢 WEBGL2, 🟢 GAUSSIAN_2D
@location(2)
conic: vec3<f32> , 🟢 WEBGL2, šŸ”“ GAUSSIAN_2D
@location(3)
major_minor: vec2<f32> , 🟢 WEBGL2, šŸ”“ GAUSSIAN_2D
@location(2)
conic: vec3<f32> , 🟢 WEBGL2, šŸ”“ GAUSSIAN_2D
@location(3)
major_minor: vec2<f32> , 🟢 WEBGL2, šŸ”“ GAUSSIAN_2D
}

GaussianVertexOutput

#
struct GaussianVertexOutput {
@builtin(position)
position: vec4<f32> , šŸ”“ WEBGL2
@location(0)
@interpolate(flat)
color: vec4<f32> , šŸ”“ WEBGL2
@location(1)
@interpolate(linear)
uv: vec2<f32> , šŸ”“ WEBGL2
@location(2)
@interpolate(flat)
local_to_pixel_u: vec3<f32> , šŸ”“ WEBGL2, 🟢 GAUSSIAN_2D
@location(3)
@interpolate(flat)
local_to_pixel_v: vec3<f32> , šŸ”“ WEBGL2, 🟢 GAUSSIAN_2D
@location(4)
@interpolate(flat)
local_to_pixel_w: vec3<f32> , šŸ”“ WEBGL2, 🟢 GAUSSIAN_2D
@location(5)
@interpolate(flat)
mean_2d: vec2<f32> , šŸ”“ WEBGL2, 🟢 GAUSSIAN_2D
@location(6)
@interpolate(flat)
radius: vec2<f32> , šŸ”“ WEBGL2, 🟢 GAUSSIAN_2D
@location(2)
@interpolate(flat)
conic: vec3<f32> , šŸ”“ WEBGL2, šŸ”“ GAUSSIAN_2D
@location(3)
@interpolate(linear)
major_minor: vec2<f32> , šŸ”“ WEBGL2, šŸ”“ GAUSSIAN_2D
@location(2)
@interpolate(flat)
conic: vec3<f32> , šŸ”“ WEBGL2, šŸ”“ GAUSSIAN_2D
@location(3)
@interpolate(linear)
major_minor: vec2<f32> , šŸ”“ WEBGL2, šŸ”“ GAUSSIAN_2D
}

Functions

get_entry

#

Shader defs requirments:

🟢 BUFFER_STORAGE

fn get_entry (
index: u32
) -> Entry

get_entry

#

Shader defs requirments:

šŸ”“ BUFFER_STORAGE

fn get_entry (
index: u32
) -> Entry

world_to_local_direction

#
fn world_to_local_direction (
ray_direction_world: vec3<f32>
transform: mat4x4<f32>
) -> vec3<f32>

vs_points

#
@vertex
Processes each 3D point in a model before it's drawn
fn vs_points (
@builtin(instance_index)
instance_index: u32
@builtin(vertex_index)
vertex_index: u32
) -> GaussianVertexOutput

fs_main

#
@fragment
Calculates the final color of each pixel on the screen
fn fs_main ( ) ->
@location(0)
vec4<f32>