mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
7163aabf29
# Objective - When adding/removing bindings in large binding lists, git would generate very difficult-to-read diffs ## Solution - Move the `@group(X) @binding(Y)` into the same line as the binding type declaration
24 lines
947 B
WebGPU Shading Language
24 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) {}
|