From 70abd33e30dc86cc96b8be6a374dc864a14a6622 Mon Sep 17 00:00:00 2001 From: Alex S Date: Tue, 29 Jun 2021 17:52:39 +0300 Subject: [PATCH] Removed feature="spirv" requirements from SPIRV_PASSTHROUGH support. .__________________________________________________________________. --- wgpu/src/util/mod.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/wgpu/src/util/mod.rs b/wgpu/src/util/mod.rs index 1e9f85eb4e..82420d587c 100644 --- a/wgpu/src/util/mod.rs +++ b/wgpu/src/util/mod.rs @@ -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!(