mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
98ff2154bf
# Objective Fixes #8967 ## Solution I think this example was just missed in #5703. I made the same sort of changes to `fallback_image` that were made in other examples in that PR.
36 lines
947 B
WebGPU Shading Language
36 lines
947 B
WebGPU Shading Language
#import bevy_pbr::mesh_view_bindings
|
|
#import bevy_pbr::mesh_bindings
|
|
#import bevy_pbr::mesh_vertex_output MeshVertexOutput
|
|
|
|
@group(1) @binding(0)
|
|
var test_texture_1d: texture_1d<f32>;
|
|
@group(1) @binding(1)
|
|
var test_texture_1d_sampler: sampler;
|
|
|
|
@group(1) @binding(2)
|
|
var test_texture_2d: texture_2d<f32>;
|
|
@group(1) @binding(3)
|
|
var test_texture_2d_sampler: sampler;
|
|
|
|
@group(1) @binding(4)
|
|
var test_texture_2d_array: texture_2d_array<f32>;
|
|
@group(1) @binding(5)
|
|
var test_texture_2d_array_sampler: sampler;
|
|
|
|
@group(1) @binding(6)
|
|
var test_texture_cube: texture_cube<f32>;
|
|
@group(1) @binding(7)
|
|
var test_texture_cube_sampler: sampler;
|
|
|
|
@group(1) @binding(8)
|
|
var test_texture_cube_array: texture_cube_array<f32>;
|
|
@group(1) @binding(9)
|
|
var test_texture_cube_array_sampler: sampler;
|
|
|
|
@group(1) @binding(10)
|
|
var test_texture_3d: texture_3d<f32>;
|
|
@group(1) @binding(11)
|
|
var test_texture_3d_sampler: sampler;
|
|
|
|
@fragment
|
|
fn fragment(in: MeshVertexOutput) {}
|