pub struct ShaderPrograms {
pub name: String,
pub passes: Vec<Vec<PassStages>>,
pub platforms: Vec<i64>,
/* private fields */
}Expand description
A Shader’s compiled programs: passes[subshader][pass], and its per-platform blobs.
Fields§
§name: StringThe shader’s name (m_ParsedForm.m_Name).
passes: Vec<Vec<PassStages>>The passes of each subshader.
platforms: Vec<i64>Unity’s ShaderCompilerPlatform of each blob (4: D3D11).
Implementations§
Source§impl ShaderPrograms
impl ShaderPrograms
Sourcepub fn code(&self, platform: i64, index: u32) -> Result<Vec<u8>>
pub fn code(&self, platform: i64, index: u32) -> Result<Vec<u8>>
The code of blob entry index of the blob for platform (Unity’s ShaderCompilerPlatform): the program
record’s code bytes, as stored.
Trait Implementations§
Source§impl Clone for ShaderPrograms
impl Clone for ShaderPrograms
Source§impl Debug for ShaderPrograms
impl Debug for ShaderPrograms
Source§impl PartialEq for ShaderPrograms
impl PartialEq for ShaderPrograms
impl StructuralPartialEq for ShaderPrograms
Auto Trait Implementations§
impl Freeze for ShaderPrograms
impl RefUnwindSafe for ShaderPrograms
impl Send for ShaderPrograms
impl Sync for ShaderPrograms
impl Unpin for ShaderPrograms
impl UnsafeUnpin for ShaderPrograms
impl UnwindSafe for ShaderPrograms
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