pub struct HlslCompiler<'a> { /* private fields */ }Available on crate feature
hlsl only.Expand description
High Level Language compiler.
Implementations§
Source§impl<'a> HlslCompiler<'a>
impl<'a> HlslCompiler<'a>
pub fn new(ctx: &'a mut Context, words: &[u32]) -> Result<Self>
pub fn into_generic(self) -> GenericCompiler<'a>
pub fn shader_model_semver(self, version: &Version) -> Result<Self>
pub fn shader_model(self, major: u32, minor: u32) -> Result<Self>
pub fn point_size_compat(self, point_size_compat: bool) -> Result<Self>
pub fn point_coord_compat(self, point_coord_compat: bool) -> Result<Self>
pub fn support_nonzero_base_vertex_base_instance( self, support_nonzero_base_vertex_base_instance: bool, ) -> Result<Self>
pub fn force_storage_buffer_as_uav( self, force_storage_buffer_as_uav: bool, ) -> Result<Self>
pub fn nonwritable_uav_texture_as_srv( self, nonwritable_uav_texture_as_srv: bool, ) -> Result<Self>
pub fn enable_16bit_types(self, enable_16bit_types: bool) -> Result<Self>
pub fn flatten_matrix_vertex_input_semantics( self, flatten_matrix_vertex_input_semantics: bool, ) -> Result<Self>
Trait Implementations§
Source§impl<'a> Compiler<'a> for HlslCompiler<'a>
impl<'a> Compiler<'a> for HlslCompiler<'a>
Source§fn raw_compile(self) -> Result<&'a CStr>
fn raw_compile(self) -> Result<&'a CStr>
Compiles the program with the specified options, returning a reference to the context’s
resulting C string. Read more
Source§fn set_uint(self, option: spvc_compiler_option, value: c_uint) -> Result<Self>
fn set_uint(self, option: spvc_compiler_option, value: c_uint) -> Result<Self>
Sets the compiler’s
option property to the specified integer value.Source§fn set_bool(self, option: spvc_compiler_option, value: bool) -> Result<Self>
fn set_bool(self, option: spvc_compiler_option, value: bool) -> Result<Self>
Sets the compiler’s
option property to the specified boolean value.fn force_temporary(self, force_temporary: bool) -> Result<Self>
fn flatten_multidimensional_arrays( self, flatten_multidimensional_arrays: bool, ) -> Result<Self>
fn fixup_depth_convention(self, fixup_depth_convention: bool) -> Result<Self>
fn flip_vertex_y(self, flip_vertex_y: bool) -> Result<Self>
fn emit_line_directives(self, emit_line_directives: bool) -> Result<Self>
fn enable_storage_image_qualifier_deduction( self, enable_storage_image_qualifier_deduction: bool, ) -> Result<Self>
fn force_zero_initialized_variables( self, force_zero_initialized_variables: bool, ) -> Result<Self>
Source§impl<'a> From<HlslCompiler<'a>> for GenericCompiler<'a>
impl<'a> From<HlslCompiler<'a>> for GenericCompiler<'a>
Source§fn from(value: HlslCompiler<'a>) -> Self
fn from(value: HlslCompiler<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for HlslCompiler<'a>
impl<'a> !RefUnwindSafe for HlslCompiler<'a>
impl<'a> Send for HlslCompiler<'a>
impl<'a> Sync for HlslCompiler<'a>
impl<'a> Unpin for HlslCompiler<'a>
impl<'a> !UnwindSafe for HlslCompiler<'a>
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