reflect(wgsl): properly adjust coordinate space to WGSL-expected
This commit is contained in:
parent
31891e414f
commit
121dbc4ed6
|
@ -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,
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue