pub struct HlslCompiled { /* private fields */ }Expand description
Represents a compiled HLSL shader with metadata.
This structure wraps a DXBC shader with comprehensive metadata about its compilation, including source file, shader model, and unique identifiers.
Implementations§
Source§impl HlslCompiled
impl HlslCompiled
Sourcepub fn serialise_version(&self) -> &u16
pub fn serialise_version(&self) -> &u16
FASTBIN0 serialization version (currently always 1).
Sourcepub fn shader_name(&self) -> &String
pub fn shader_name(&self) -> &String
Shader entry point function name.
Sourcepub fn shader_type(&self) -> &String
pub fn shader_type(&self) -> &String
Shader type (e.g., “VertexShader”, “PixelShader”, “ComputeShader”).
Sourcepub fn model_long(&self) -> &String
pub fn model_long(&self) -> &String
Full shader model string (e.g., “vs_5_0”, “ps_5_0”).
Sourcepub fn model_short(&self) -> &String
pub fn model_short(&self) -> &String
Short shader model identifier.
Source§impl HlslCompiled
impl HlslCompiled
Sourcepub fn serialise_version_mut(&mut self) -> &mut u16
pub fn serialise_version_mut(&mut self) -> &mut u16
FASTBIN0 serialization version (currently always 1).
Sourcepub fn source_mut(&mut self) -> &mut String
pub fn source_mut(&mut self) -> &mut String
Path to the source .hlsl file.
Sourcepub fn shader_name_mut(&mut self) -> &mut String
pub fn shader_name_mut(&mut self) -> &mut String
Shader entry point function name.
Sourcepub fn shader_type_mut(&mut self) -> &mut String
pub fn shader_type_mut(&mut self) -> &mut String
Shader type (e.g., “VertexShader”, “PixelShader”, “ComputeShader”).
Sourcepub fn model_long_mut(&mut self) -> &mut String
pub fn model_long_mut(&mut self) -> &mut String
Full shader model string (e.g., “vs_5_0”, “ps_5_0”).
Sourcepub fn no_idea_1_mut(&mut self) -> &mut String
pub fn no_idea_1_mut(&mut self) -> &mut String
Unknown string field (purpose not yet identified).
Sourcepub fn no_idea_2_mut(&mut self) -> &mut u32
pub fn no_idea_2_mut(&mut self) -> &mut u32
Unknown u32 field (purpose not yet identified).
Sourcepub fn model_short_mut(&mut self) -> &mut String
pub fn model_short_mut(&mut self) -> &mut String
Short shader model identifier.
Sourcepub fn no_idea_3_mut(&mut self) -> &mut u16
pub fn no_idea_3_mut(&mut self) -> &mut u16
Unknown u16 field (purpose not yet identified).
Sourcepub fn no_idea_4_mut(&mut self) -> &mut u32
pub fn no_idea_4_mut(&mut self) -> &mut u32
Unknown u32 field (purpose not yet identified).
Source§impl HlslCompiled
impl HlslCompiled
Sourcepub fn set_serialise_version(&mut self, val: u16) -> &mut Self
pub fn set_serialise_version(&mut self, val: u16) -> &mut Self
FASTBIN0 serialization version (currently always 1).
Sourcepub fn set_api(&mut self, val: String) -> &mut Self
pub fn set_api(&mut self, val: String) -> &mut Self
Target graphics API (e.g., “dx11”, “dx12”).
Sourcepub fn set_source(&mut self, val: String) -> &mut Self
pub fn set_source(&mut self, val: String) -> &mut Self
Path to the source .hlsl file.
Sourcepub fn set_shader_name(&mut self, val: String) -> &mut Self
pub fn set_shader_name(&mut self, val: String) -> &mut Self
Shader entry point function name.
Sourcepub fn set_shader_type(&mut self, val: String) -> &mut Self
pub fn set_shader_type(&mut self, val: String) -> &mut Self
Shader type (e.g., “VertexShader”, “PixelShader”, “ComputeShader”).
Sourcepub fn set_model_long(&mut self, val: String) -> &mut Self
pub fn set_model_long(&mut self, val: String) -> &mut Self
Full shader model string (e.g., “vs_5_0”, “ps_5_0”).
Sourcepub fn set_no_idea_1(&mut self, val: String) -> &mut Self
pub fn set_no_idea_1(&mut self, val: String) -> &mut Self
Unknown string field (purpose not yet identified).
Sourcepub fn set_uuid(&mut self, val: String) -> &mut Self
pub fn set_uuid(&mut self, val: String) -> &mut Self
Unique identifier for this shader compilation.
Sourcepub fn set_no_idea_2(&mut self, val: u32) -> &mut Self
pub fn set_no_idea_2(&mut self, val: u32) -> &mut Self
Unknown u32 field (purpose not yet identified).
Sourcepub fn set_model_short(&mut self, val: String) -> &mut Self
pub fn set_model_short(&mut self, val: String) -> &mut Self
Short shader model identifier.
Sourcepub fn set_no_idea_3(&mut self, val: u16) -> &mut Self
pub fn set_no_idea_3(&mut self, val: u16) -> &mut Self
Unknown u16 field (purpose not yet identified).
Sourcepub fn set_no_idea_4(&mut self, val: u32) -> &mut Self
pub fn set_no_idea_4(&mut self, val: u32) -> &mut Self
Unknown u32 field (purpose not yet identified).
Trait Implementations§
Source§impl Clone for HlslCompiled
impl Clone for HlslCompiled
Source§fn clone(&self) -> HlslCompiled
fn clone(&self) -> HlslCompiled
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HlslCompiled
impl Debug for HlslCompiled
Source§impl Decodeable for HlslCompiled
impl Decodeable for HlslCompiled
Source§impl Default for HlslCompiled
impl Default for HlslCompiled
Source§fn default() -> HlslCompiled
fn default() -> HlslCompiled
Source§impl<'de> Deserialize<'de> for HlslCompiled
impl<'de> Deserialize<'de> for HlslCompiled
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Encodeable for HlslCompiled
impl Encodeable for HlslCompiled
Source§fn encode<W: WriteBytes>(
&mut self,
buffer: &mut W,
extra_data: &Option<EncodeableExtraData<'_>>,
) -> Result<()>
fn encode<W: WriteBytes>( &mut self, buffer: &mut W, extra_data: &Option<EncodeableExtraData<'_>>, ) -> Result<()>
Source§impl PartialEq for HlslCompiled
impl PartialEq for HlslCompiled
Source§impl Serialize for HlslCompiled
impl Serialize for HlslCompiled
impl StructuralPartialEq for HlslCompiled
Auto Trait Implementations§
impl Freeze for HlslCompiled
impl RefUnwindSafe for HlslCompiled
impl Send for HlslCompiled
impl Sync for HlslCompiled
impl Unpin for HlslCompiled
impl UnsafeUnpin for HlslCompiled
impl UnwindSafe for HlslCompiled
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.