Hey guys,
Running into an error message I can't seem to understand
Shader global ResourceBinding { group: 0, binding: 1 } is not available in the pipeline layout
Storage class Storage { access: StorageAccess(LOAD | STORE) } doesn't match the shader Storage { access: StorageAccess(LOAD) }
in my wgsl
@group(0) @binding(5) var<storage, read_write> hit_distances: array<f32>;
@group(1) @binding(0) var<uniform> trace_uniforms: TraceUniforms;
and in my setup binding
&[BindGroupLayoutEntry {
binding: 1,
visibility: ShaderStages::COMPUTE | ShaderStages::FRAGMENT,
ty: BindingType::Buffer {
ty: BufferBindingType::Storage { read_only: false },
has_dynamic_offset: false,
min_binding_size: BufferSize::new((1280 * 720 * 4) as u64),
},
count: None,
}],
&[BindGroupEntry {
binding: 1,
resource: trace_pipeline_data.hit_distances_buffer.as_entire_binding(),
}],