Created
September 28, 2024 04:45
-
-
Save mooman219/d6ab415377abfb7a4dd223a810c01f4d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[std140::uniform] | |
#[derive(Copy, Clone)] | |
pub struct SpriteUniform { | |
pub ortho: std140::mat4, | |
} | |
// expanded | |
#[repr(C, align(16))] | |
pub struct SpriteUniform { | |
pub ortho: std140::mat4, | |
} | |
#[automatically_derived] | |
impl ::core::marker::Copy for SpriteUniform {} | |
#[automatically_derived] | |
impl ::core::clone::Clone for SpriteUniform { | |
#[inline] | |
fn clone(&self) -> SpriteUniform { | |
let _: ::core::clone::AssertParamIsClone<std140::mat4>; | |
*self | |
} | |
} | |
#[allow(non_upper_case_globals, unused_attributes, unused_qualifications)] | |
const _IMPL_STORM_UNIFORM_FOR_SpriteUniform: () = { | |
#[allow(unknown_lints)] | |
#[allow(rust_2018_idioms)] | |
struct assert_std140_element<T> | |
where | |
T: std140::Std140Element, | |
{ | |
marker: core::marker::PhantomData<T>, | |
} | |
assert_std140_element::<std140::mat4> { | |
marker: core::marker::PhantomData, | |
}; | |
#[automatically_derived] | |
unsafe impl std140::Std140Struct for SpriteUniform {} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment