diff options
| author | s-ol <s+removethis@s-ol.nu> | 2026-05-05 16:28:46 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2026-05-14 15:00:13 +0000 |
| commit | 06db91ce8e8c9dd5993077423c1400d9e81d6ad0 (patch) | |
| tree | cc89f5f2ecc5e32f1d610aaf64b2729477188ad6 /src/uniform.rs | |
| parent | tsv-video-*: share code (diff) | |
| download | wgsl-view-main.tar.gz wgsl-view-main.zip | |
Diffstat (limited to '')
| -rw-r--r-- | src/uniform.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uniform.rs b/src/uniform.rs index a428102..c8f55c2 100644 --- a/src/uniform.rs +++ b/src/uniform.rs @@ -412,7 +412,7 @@ pub struct TextureResource { impl TextureResource { pub fn new(device: &wgpu::Device, id: String, tsv_name: String) -> Self { - let format = wgpu::TextureFormat::Rgba8UnormSrgb; + let format = wgpu::TextureFormat::Rgba8Unorm; let view_dimension = wgpu::TextureViewDimension::D2; let dimension = view_dimension_to_texture_dimension(view_dimension); let (texture, view) = @@ -1140,7 +1140,7 @@ fn create_placeholder_texture( slot: &TextureBindingSlot, ) -> (wgpu::Texture, wgpu::TextureView) { let format = match slot.sample_type { - wgpu::TextureSampleType::Float { .. } => wgpu::TextureFormat::Rgba8UnormSrgb, + wgpu::TextureSampleType::Float { .. } => wgpu::TextureFormat::Rgba8Unorm, wgpu::TextureSampleType::Sint => wgpu::TextureFormat::Rgba8Sint, wgpu::TextureSampleType::Uint => wgpu::TextureFormat::Rgba8Uint, wgpu::TextureSampleType::Depth => wgpu::TextureFormat::Depth32Float, |
