Skip to content

Commit 9aa1fd5

Browse files
liamwhiteLegNeato
authored andcommitted
Remove unsafe from subgroup_ballot_bit_extract: undefined result possible, but not undefined behavior
1 parent 9fc7264 commit 9aa1fd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/spirv-std/src/arch/subgroup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ pub unsafe fn subgroup_inverse_ballot(subgroup_mask: SubgroupMask) -> bool {
447447
#[spirv_std_macros::gpu_only]
448448
#[doc(alias = "OpGroupNonUniformBallotBitExtract")]
449449
#[inline]
450-
pub unsafe fn subgroup_ballot_bit_extract(subgroup_mask: SubgroupMask, id: u32) -> bool {
450+
pub fn subgroup_ballot_bit_extract(subgroup_mask: SubgroupMask, id: u32) -> bool {
451451
let mut result = false;
452452

453453
unsafe {

0 commit comments

Comments
 (0)