summaryrefslogtreecommitdiffstats
path: root/src/uniform.rs
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2026-05-05 16:28:46 +0000
committers-ol <s+removethis@s-ol.nu>2026-05-14 15:00:13 +0000
commit06db91ce8e8c9dd5993077423c1400d9e81d6ad0 (patch)
treecc89f5f2ecc5e32f1d610aaf64b2729477188ad6 /src/uniform.rs
parenttsv-video-*: share code (diff)
downloadwgsl-view-main.tar.gz
wgsl-view-main.zip
fix SRGB failHEADmain
Diffstat (limited to '')
-rw-r--r--src/uniform.rs4
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,