Support multi viewport rendering with reusable text atlas (#88)

This commit is contained in:
Pēteris Pakalns 2024-03-26 02:25:57 +02:00 committed by GitHub
parent 4700e54f16
commit f95e66f612
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 78 additions and 83 deletions

View file

@ -23,13 +23,13 @@ struct Params {
@group(0) @binding(0)
var<uniform> params: Params;
@group(0) @binding(1)
@group(1) @binding(0)
var color_atlas_texture: texture_2d<f32>;
@group(0) @binding(2)
@group(1) @binding(1)
var mask_atlas_texture: texture_2d<f32>;
@group(0) @binding(3)
@group(1) @binding(2)
var atlas_sampler: sampler;
fn srgb_to_linear(c: f32) -> f32 {