pub struct ProgramInfo {
pub vertex_attributes: Vec<AttributeVar>,
pub globals: Vec<ConstVar>,
pub constant_buffers: Vec<ConstantBufferVar>,
pub textures: Vec<TextureVar>,
pub unordereds: Vec<UnorderedVar>,
pub samplers: Vec<SamplerVar>,
pub outputs: Vec<OutputVar>,
pub output_depth: bool,
pub knows_outputs: bool,
}
Expand description
Metadata about a program.
Fields§
§vertex_attributes: Vec<AttributeVar>
Attributes in the program
globals: Vec<ConstVar>
Global constants in the program
constant_buffers: Vec<ConstantBufferVar>
Constant buffers in the program
textures: Vec<TextureVar>
Textures in the program
unordereds: Vec<UnorderedVar>
Unordered access resources in the program
samplers: Vec<SamplerVar>
Samplers in the program
outputs: Vec<OutputVar>
Output targets in the program
output_depth: bool
A flag indicating that the pixel shader manually assigns the depth.
knows_outputs: bool
A hacky flag to make sure the clients know we are unable to actually get the output variable info
Trait Implementations§
Source§impl Clone for ProgramInfo
impl Clone for ProgramInfo
Source§fn clone(&self) -> ProgramInfo
fn clone(&self) -> ProgramInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProgramInfo
impl Debug for ProgramInfo
Source§impl Hash for ProgramInfo
impl Hash for ProgramInfo
Source§impl PartialEq for ProgramInfo
impl PartialEq for ProgramInfo
impl Eq for ProgramInfo
impl StructuralPartialEq for ProgramInfo
Auto Trait Implementations§
impl Freeze for ProgramInfo
impl RefUnwindSafe for ProgramInfo
impl Send for ProgramInfo
impl Sync for ProgramInfo
impl Unpin for ProgramInfo
impl UnwindSafe for ProgramInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more