summaryrefslogtreecommitdiffstats
path: root/src/uniform.rs
diff options
context:
space:
mode:
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,