ShaderObject

Struct ShaderObject 

Source
pub struct ShaderObject { /* private fields */ }
Expand description

Implementations§

Source§

impl ShaderObject

Source

pub fn new(instance: &Instance, device: &Device) -> ShaderObject

Source

pub unsafe fn create_shaders( &self, create_infos: &[ShaderCreateInfoEXT], allocator: Option<&AllocationCallbacks>, ) -> Result<Vec<ShaderEXT>, Result>

Source

pub unsafe fn destroy_shader( &self, shader: ShaderEXT, allocator: Option<&AllocationCallbacks>, )

Source

pub unsafe fn get_shader_binary_data( &self, shader: ShaderEXT, ) -> Result<Vec<u8>, Result>

Source

pub unsafe fn cmd_bind_shaders( &self, command_buffer: CommandBuffer, stages: &[ShaderStageFlags], shaders: &[ShaderEXT], )

Source

pub unsafe fn cmd_set_vertex_input( &self, command_buffer: CommandBuffer, vertex_binding_descriptions: &[VertexInputBindingDescription2EXT], vertex_attribute_descriptions: &[VertexInputAttributeDescription2EXT], )

Source

pub unsafe fn cmd_set_cull_mode( &self, command_buffer: CommandBuffer, cull_mode: CullModeFlags, )

Source

pub unsafe fn cmd_set_front_face( &self, command_buffer: CommandBuffer, front_face: FrontFace, )

Source

pub unsafe fn cmd_set_primitive_topology( &self, command_buffer: CommandBuffer, primitive_topology: PrimitiveTopology, )

Source

pub unsafe fn cmd_set_viewport_with_count( &self, command_buffer: CommandBuffer, viewports: &[Viewport], )

Source

pub unsafe fn cmd_set_scissor_with_count( &self, command_buffer: CommandBuffer, scissors: &[Rect2D], )

Source

pub unsafe fn cmd_bind_vertex_buffers2( &self, command_buffer: CommandBuffer, first_binding: u32, buffers: &[Buffer], offsets: &[u64], sizes: Option<&[u64]>, strides: Option<&[u64]>, )

Source

pub unsafe fn cmd_set_depth_test_enable( &self, command_buffer: CommandBuffer, depth_test_enable: bool, )

Source

pub unsafe fn cmd_set_depth_write_enable( &self, command_buffer: CommandBuffer, depth_write_enable: bool, )

Source

pub unsafe fn cmd_set_depth_compare_op( &self, command_buffer: CommandBuffer, depth_compare_op: CompareOp, )

Source

pub unsafe fn cmd_set_depth_bounds_test_enable( &self, command_buffer: CommandBuffer, depth_bounds_test_enable: bool, )

Source

pub unsafe fn cmd_set_stencil_test_enable( &self, command_buffer: CommandBuffer, stencil_test_enable: bool, )

Source

pub unsafe fn cmd_set_stencil_op( &self, command_buffer: CommandBuffer, face_mask: StencilFaceFlags, fail_op: StencilOp, pass_op: StencilOp, depth_fail_op: StencilOp, compare_op: CompareOp, )

Source

pub unsafe fn cmd_set_patch_control_points( &self, command_buffer: CommandBuffer, patch_control_points: u32, )

Source

pub unsafe fn cmd_set_rasterizer_discard_enable( &self, command_buffer: CommandBuffer, rasterizer_discard_enable: bool, )

Source

pub unsafe fn cmd_set_depth_bias_enable( &self, command_buffer: CommandBuffer, depth_bias_enable: bool, )

Source

pub unsafe fn cmd_set_logic_op( &self, command_buffer: CommandBuffer, logic_op: LogicOp, )

Source

pub unsafe fn cmd_set_primitive_restart_enable( &self, command_buffer: CommandBuffer, primitive_restart_enable: bool, )

Source

pub unsafe fn cmd_set_tessellation_domain_origin( &self, command_buffer: CommandBuffer, domain_origin: TessellationDomainOrigin, )

Source

pub unsafe fn cmd_set_depth_clamp_enable( &self, command_buffer: CommandBuffer, depth_clamp_enable: bool, )

Source

pub unsafe fn cmd_set_polygon_mode( &self, command_buffer: CommandBuffer, polygon_mode: PolygonMode, )

Source

pub unsafe fn cmd_set_rasterization_samples( &self, command_buffer: CommandBuffer, rasterization_samples: SampleCountFlags, )

Source

pub unsafe fn cmd_set_sample_mask( &self, command_buffer: CommandBuffer, samples: SampleCountFlags, sample_mask: &[u32], )

Source

pub unsafe fn cmd_set_alpha_to_coverage_enable( &self, command_buffer: CommandBuffer, alpha_to_coverage_enable: bool, )

Source

pub unsafe fn cmd_set_alpha_to_one_enable( &self, command_buffer: CommandBuffer, alpha_to_one_enable: bool, )

Source

pub unsafe fn cmd_set_logic_op_enable( &self, command_buffer: CommandBuffer, logic_op_enable: bool, )

Source

pub unsafe fn cmd_set_color_blend_enable( &self, command_buffer: CommandBuffer, first_attachment: u32, color_blend_enables: &[u32], )

Source

pub unsafe fn cmd_set_color_blend_equation( &self, command_buffer: CommandBuffer, first_attachment: u32, color_blend_equations: &[ColorBlendEquationEXT], )

Source

pub unsafe fn cmd_set_color_write_mask( &self, command_buffer: CommandBuffer, first_attachment: u32, color_write_masks: &[ColorComponentFlags], )

Source

pub unsafe fn cmd_set_rasterization_stream( &self, command_buffer: CommandBuffer, rasterization_stream: u32, )

Source

pub unsafe fn cmd_set_conservative_rasterization_mode( &self, command_buffer: CommandBuffer, conservative_rasterization_mode: ConservativeRasterizationModeEXT, )

Source

pub unsafe fn cmd_set_extra_primitive_overestimation_size( &self, command_buffer: CommandBuffer, extra_primitive_overestimation_size: f32, )

Source

pub unsafe fn cmd_set_depth_clip_enable( &self, command_buffer: CommandBuffer, depth_clip_enable: bool, )

Source

pub unsafe fn cmd_set_sample_locations_enable( &self, command_buffer: CommandBuffer, sample_locations_enable: bool, )

Source

pub unsafe fn cmd_set_color_blend_advanced( &self, command_buffer: CommandBuffer, first_attachment: u32, color_blend_advanced: &[ColorBlendAdvancedEXT], )

Source

pub unsafe fn cmd_set_provoking_vertex_mode( &self, command_buffer: CommandBuffer, provoking_vertex_mode: ProvokingVertexModeEXT, )

Source

pub unsafe fn cmd_set_line_rasterization_mode( &self, command_buffer: CommandBuffer, line_rasterization_mode: LineRasterizationModeEXT, )

Source

pub unsafe fn cmd_set_line_stipple_enable( &self, command_buffer: CommandBuffer, stippled_line_enable: bool, )

Source

pub unsafe fn cmd_set_depth_clip_negative_one_to_one( &self, command_buffer: CommandBuffer, negative_one_to_one: bool, )

Source

pub unsafe fn cmd_set_viewport_w_scaling_enable_nv( &self, command_buffer: CommandBuffer, viewport_w_scaling_enable: bool, )

Source

pub unsafe fn cmd_set_viewport_swizzle_nv( &self, command_buffer: CommandBuffer, first_attachment: u32, viewport_swizzles: &[ViewportSwizzleNV], )

Source

pub unsafe fn cmd_set_coverage_to_color_enable_nv( &self, command_buffer: CommandBuffer, coverage_to_color_enable: bool, )

Source

pub unsafe fn cmd_set_coverage_to_color_location_nv( &self, command_buffer: CommandBuffer, coverage_to_color_location: u32, )

Source

pub unsafe fn cmd_set_coverage_modulation_mode_nv( &self, command_buffer: CommandBuffer, coverage_modulation_mode: CoverageModulationModeNV, )

Source

pub unsafe fn cmd_set_coverage_modulation_table_enable_nv( &self, command_buffer: CommandBuffer, coverage_modulation_table_enable: bool, )

Source

pub unsafe fn cmd_set_coverage_modulation_table_nv( &self, command_buffer: CommandBuffer, coverage_modulation_table: &[f32], )

Source

pub unsafe fn cmd_set_shading_rate_image_enable_nv( &self, command_buffer: CommandBuffer, shading_rate_image_enable: bool, )

Source

pub unsafe fn cmd_set_representative_fragment_test_enable_nv( &self, command_buffer: CommandBuffer, representative_fragment_test_enable: bool, )

Source

pub unsafe fn cmd_set_coverage_reduction_mode_nv( &self, command_buffer: CommandBuffer, coverage_reduction_mode: CoverageReductionModeNV, )

Source

pub const fn name() -> &'static CStr

Source

pub fn fp(&self) -> &ExtShaderObjectFn

Source

pub fn device(&self) -> Device

Trait Implementations§

Source§

impl Clone for ShaderObject

Source§

fn clone(&self) -> ShaderObject

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Resource for T
where T: Downcast + Send + Sync,