reflect(wgsl): properly adjust coordinate space to WGSL-expected

This commit is contained in:
chyyran 2024-02-06 00:40:16 -05:00 committed by Ronny Chan
parent 31891e414f
commit 121dbc4ed6
3 changed files with 4 additions and 6 deletions

View file

@ -53,7 +53,7 @@ impl FromCompilation<GlslangCompilation> for WGSL {
}
let options = naga::front::spv::Options {
adjust_coordinate_space: false,
adjust_coordinate_space: true,
strict_capabilities: false,
block_ctx_dump_prefix: None,
};

View file

@ -9,11 +9,9 @@ use librashader_runtime::binding::BindingUtil;
use librashader_runtime::image::{Image, ImageError, UVDirection, BGRA8, RGBA8};
use librashader_runtime::quad::QuadType;
use librashader_runtime::uniforms::UniformStorage;
use parking_lot::RwLock;
use rustc_hash::FxHashMap;
use std::collections::VecDeque;
use std::convert::Infallible;
use std::path::Path;
use std::sync::Arc;
use crate::buffer::WgpuStagedBuffer;
@ -25,7 +23,7 @@ use librashader_runtime::render_target::RenderTarget;
use librashader_runtime::scaling::ScaleFramebuffer;
use rayon::prelude::*;
use wgpu::{
BindGroupEntry, CommandBuffer, CommandEncoder, Device, Queue, TextureAspect, TextureFormat,
Device, TextureFormat,
};
use crate::error;

View file

@ -126,7 +126,7 @@ impl<'a> State<'a> {
});
let preset =
ShaderPreset::try_parse("../test/basic.slangp").unwrap();
ShaderPreset::try_parse("../test/shaders_slang/crt/crt-royale.slangp").unwrap();
let chain = FilterChainWGPU::load_from_preset_deferred(
Arc::clone(&device),