Skip to content

Commit 365b0e5

Browse files
committed
spirv-std: never disable read_shader_clock() intrinsics based on target features
1 parent 07bc6e0 commit 365b0e5

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

crates/spirv-std/src/arch.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,6 @@ pub fn kill() -> ! {
147147
///
148148
/// See:
149149
/// <https://htmlpreview.github.io/?https://github.com/KhronosGroup/SPIRV-Registry/blob/master/extensions/KHR/SPV_KHR_shader_clock.html>
150-
#[cfg(all(
151-
target_feature = "Int64",
152-
target_feature = "ShaderClockKHR",
153-
target_feature = "ext:SPV_KHR_shader_clock"
154-
))]
155150
#[spirv_std_macros::gpu_only]
156151
#[doc(alias = "OpReadClockKHR")]
157152
pub unsafe fn read_clock_khr<const SCOPE: u32>() -> u64 {
@@ -172,10 +167,6 @@ pub unsafe fn read_clock_khr<const SCOPE: u32>() -> u64 {
172167
/// capability. It returns a 'vector of two-components of 32-bit unsigned
173168
/// integer type with the first component containing the 32 least significant
174169
/// bits and the second component containing the 32 most significant bits.'
175-
#[cfg(all(
176-
target_feature = "ShaderClockKHR",
177-
target_feature = "ext:SPV_KHR_shader_clock"
178-
))]
179170
#[spirv_std_macros::gpu_only]
180171
#[doc(alias = "OpReadClockKHR")]
181172
pub unsafe fn read_clock_uvec2_khr<V: Vector<u32, 2>, const SCOPE: u32>() -> V {

0 commit comments

Comments
 (0)