mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-02-27 06:14:19 +00:00
Merge #1571
1571: Removed feature="spirv" requirements from SPIRV_PASSTHROUGH support. r=cwfitzgerald a=ElectronicRU .__________________________________________________________________. Co-authored-by: Alex S <alex0player@gmail.com>
This commit is contained in:
commit
81214b21ec
@ -6,7 +6,6 @@ mod encoder;
|
||||
mod init;
|
||||
|
||||
use std::future::Future;
|
||||
#[cfg(feature = "spirv")]
|
||||
use std::{
|
||||
borrow::Cow,
|
||||
mem::{align_of, size_of},
|
||||
@ -37,7 +36,6 @@ pub fn make_spirv(data: &[u8]) -> super::ShaderSource {
|
||||
|
||||
/// Version of [`make_spirv`] intended for use with [`Device::create_shader_module_spirv`].
|
||||
/// Returns raw slice instead of ShaderSource.
|
||||
#[cfg(feature = "spirv")]
|
||||
pub fn make_spirv_raw(data: &[u8]) -> Cow<[u32]> {
|
||||
const MAGIC_NUMBER: u32 = 0x0723_0203;
|
||||
assert_eq!(
|
||||
|
Loading…
Reference in New Issue
Block a user