realtime_bindings.wgsl
Import path
Bindings
@group(1)
@binding(0)
var
view_output:
texture_storage_2d<rgba16float, read_write>
@group(1)
@binding(2)
var<storage, read_write>
light_tile_resolved_samples:
array<ResolvedLightSamplePacked>
@group(1)
@binding(3)
var
di_reservoirs_a:
texture_storage_2d<rgba32uint, read_write>
@group(1)
@binding(4)
var
di_reservoirs_b:
texture_storage_2d<rgba32uint, read_write>
@group(1)
@binding(7)
var
gbuffer:
texture_2d<u32>
@group(1)
@binding(8)
var
depth_buffer:
texture_depth_2d
@group(1)
@binding(9)
var
motion_vectors:
texture_2d<f32>
@group(1)
@binding(10)
var
previous_gbuffer:
texture_2d<u32>
@group(1)
@binding(11)
var
previous_depth_buffer:
texture_depth_2d
@group(1)
@binding(14)
var<storage, read_write>
world_cache_checksums:
atomic<u32>
Shader defs requirments:
š¢ WORLD_CACHE_NON_ATOMIC_LIFE_BUFFER
@group(1)
@binding(15)
var<storage, read_write>
world_cache_life:
WORLD_CACHE_SIZE
Shader defs requirments:
š“ WORLD_CACHE_NON_ATOMIC_LIFE_BUFFER
@group(1)
@binding(15)
var<storage, read_write>
world_cache_life:
atomic<u32>
@group(1)
@binding(18)
var<storage, read_write>
world_cache_luminance_deltas:
WORLD_CACHE_SIZE
@group(1)
@binding(20)
var<storage, read_write>
world_cache_a:
WORLD_CACHE_SIZE
@group(1)
@binding(22)
var<storage, read_write>
world_cache_active_cell_indices:
WORLD_CACHE_SIZE
Shader defs requirments:
š¢ DLSS_RR_GUIDE_BUFFERS
@group(2)
@binding(0)
var
diffuse_albedo:
texture_storage_2d<rgba8unorm, write>
Shader defs requirments:
š¢ DLSS_RR_GUIDE_BUFFERS
@group(2)
@binding(1)
var
specular_albedo:
texture_storage_2d<rgba8unorm, write>
Shader defs requirments:
š¢ DLSS_RR_GUIDE_BUFFERS
@group(2)
@binding(2)
var
normal_roughness:
texture_storage_2d<rgba16float, write>
Shader defs requirments:
š¢ DLSS_RR_GUIDE_BUFFERS
@group(2)
@binding(3)
var
specular_motion_vectors:
texture_storage_2d<rg16float, write>
Structures
Don’t adjust the size of this struct without also adjusting prepare::GI_RESERVOIR_STRUCT_SIZE.
Don’t adjust the size of this struct without also adjusting
prepare::RESOLVED_LIGHT_SAMPLE_STRUCT_SIZE.