Skip to main content

FakeGlSnapshot

Struct FakeGlSnapshot 

Source
pub struct FakeGlSnapshot {
Show 98 fields pub clear_calls: usize, pub current_clear_color: [u32; 4], pub clear_colors: Vec<[u32; 4]>, pub clear_scissor_enabled: Vec<bool>, pub draw_arrays_calls: usize, pub draw_arrays_call_args: Vec<FakeDrawArraysCall>, pub draw_elements_calls: usize, pub draw_elements_instanced_calls: usize, pub draw_elements_call_args: Vec<FakeDrawElementsCall>, pub blend_color_calls: Vec<FakeBlendColorCall>, pub blend_func_separate_calls: Vec<FakeBlendFuncSeparateCall>, pub blend_equation_separate_calls: Vec<FakeBlendEquationSeparateCall>, pub buffer_data_calls: usize, pub buffer_data_bytes: usize, pub buffer_data_uploads: Vec<FakeBufferDataCall>, pub buffer_sub_data_calls: Vec<FakeBufferSubDataCall>, pub copy_buffer_sub_data_calls: Vec<FakeCopyBufferSubDataCall>, pub bind_buffer_base_calls: Vec<FakeBindBufferBaseCall>, pub bind_buffer_range_calls: Vec<FakeBindBufferRangeCall>, pub created_shaders: Vec<FakeCreateShaderCall>, pub attached_shaders: Vec<FakeAttachShaderCall>, pub bind_attrib_location_calls: Vec<FakeBindAttribLocationCall>, pub linked_programs: Vec<u32>, pub deleted_buffers: Vec<u32>, pub deleted_shaders: Vec<u32>, pub deleted_programs: Vec<u32>, pub texture_parameter_calls: Vec<FakeTextureParameterCall>, pub texture_uploads_2d: Vec<FakeTextureUpload2D>, pub texture_sub_images_2d: Vec<FakeTextureSubImage2D>, pub texture_uploads_3d_calls: usize, pub generate_mipmap_calls: Vec<u32>, pub deleted_textures: Vec<u32>, pub current_program: u32, pub use_program_calls: Vec<u32>, pub uniform_1i_calls: Vec<FakeUniformIntCall>, pub uniform_3f_calls: Vec<FakeUniformFloatCall>, pub uniform_4f_calls: Vec<FakeUniformFloatCall>, pub uniform_4fv_calls: Vec<FakeUniformFloatCall>, pub uniform_matrix_3fv_calls: Vec<FakeUniformMatrix3Call>, pub bound_array_buffer: u32, pub bound_element_array_buffer: u32, pub bound_vertex_array: u32, pub vertex_array_bindings: Vec<u32>, pub deleted_vertex_arrays: Vec<u32>, pub bound_framebuffer: u32, pub generated_framebuffers: Vec<u32>, pub deleted_framebuffers: Vec<u32>, pub framebuffer_bindings: Vec<u32>, pub framebuffer_texture_2d_calls: Vec<FakeFramebufferTexture2DCall>, pub framebuffer_renderbuffer_calls: Vec<FakeFramebufferRenderbufferCall>, pub blit_framebuffer_calls: Vec<FakeBlitFramebufferCall>, pub framebuffer_invalidations: Vec<Vec<u32>>, pub bound_renderbuffer: u32, pub generated_renderbuffers: Vec<u32>, pub deleted_renderbuffers: Vec<u32>, pub renderbuffer_bindings: Vec<u32>, pub renderbuffer_storage_calls: Vec<FakeRenderbufferStorageCall>, pub viewport_calls: Vec<(i32, i32, i32, i32)>, pub pack_alignment: i32, pub pack_alignment_calls: Vec<i32>, pub unpack_alignment: i32, pub unpack_alignment_calls: Vec<i32>, pub active_texture: u32, pub bound_texture_2d: u32, pub bound_texture_2d_units: Vec<(u32, u32)>, pub bound_texture_2d_array: u32, pub bound_texture_2d_array_units: Vec<(u32, u32)>, pub blend_enabled: bool, pub scissor_enabled: bool, pub enabled_capabilities: Vec<u32>, pub depth_function: Option<u32>, pub depth_mask: bool, pub depth_range_f_calls: Vec<[u32; 2]>, pub cull_face_mode: Option<u32>, pub front_face_winding: Option<u32>, pub stencil_func: Option<FakeStencilFuncCall>, pub stencil_mask: u32, pub stencil_op: Option<FakeStencilOpCall>, pub stencil_func_separate_calls: Vec<FakeStencilFuncSeparateCall>, pub stencil_mask_separate_calls: Vec<FakeStencilMaskSeparateCall>, pub stencil_op_separate_calls: Vec<FakeStencilOpSeparateCall>, pub color_write_mask: [bool; 4], pub polygon_offset: Option<[u32; 2]>, pub generated_queries: Vec<u32>, pub deleted_queries: Vec<u32>, pub begin_query_calls: Vec<(u32, u32)>, pub end_query_calls: Vec<u32>, pub query_object_uiv_calls: Vec<FakeQueryObjectCall>, pub generated_syncs: Vec<usize>, pub client_wait_sync_calls: Vec<FakeClientWaitSyncCall>, pub wait_sync_calls: Vec<FakeWaitSyncCall>, pub deleted_syncs: Vec<usize>, pub read_pixels_calls: Vec<FakeReadPixelsCall>, pub read_buffer_calls: Vec<u32>, pub draw_buffers_calls: Vec<Vec<u32>>, pub scissor_calls: Vec<(i32, i32, i32, i32)>, pub enabled_vertex_attribs: Vec<u32>, pub vertex_attrib_pointer_calls: Vec<FakeVertexAttribPointerCall>,
}

Fields§

§clear_calls: usize§current_clear_color: [u32; 4]§clear_colors: Vec<[u32; 4]>§clear_scissor_enabled: Vec<bool>§draw_arrays_calls: usize§draw_arrays_call_args: Vec<FakeDrawArraysCall>§draw_elements_calls: usize§draw_elements_instanced_calls: usize§draw_elements_call_args: Vec<FakeDrawElementsCall>§blend_color_calls: Vec<FakeBlendColorCall>§blend_func_separate_calls: Vec<FakeBlendFuncSeparateCall>§blend_equation_separate_calls: Vec<FakeBlendEquationSeparateCall>§buffer_data_calls: usize§buffer_data_bytes: usize§buffer_data_uploads: Vec<FakeBufferDataCall>§buffer_sub_data_calls: Vec<FakeBufferSubDataCall>§copy_buffer_sub_data_calls: Vec<FakeCopyBufferSubDataCall>§bind_buffer_base_calls: Vec<FakeBindBufferBaseCall>§bind_buffer_range_calls: Vec<FakeBindBufferRangeCall>§created_shaders: Vec<FakeCreateShaderCall>§attached_shaders: Vec<FakeAttachShaderCall>§bind_attrib_location_calls: Vec<FakeBindAttribLocationCall>§linked_programs: Vec<u32>§deleted_buffers: Vec<u32>§deleted_shaders: Vec<u32>§deleted_programs: Vec<u32>§texture_parameter_calls: Vec<FakeTextureParameterCall>§texture_uploads_2d: Vec<FakeTextureUpload2D>§texture_sub_images_2d: Vec<FakeTextureSubImage2D>§texture_uploads_3d_calls: usize§generate_mipmap_calls: Vec<u32>§deleted_textures: Vec<u32>§current_program: u32§use_program_calls: Vec<u32>§uniform_1i_calls: Vec<FakeUniformIntCall>§uniform_3f_calls: Vec<FakeUniformFloatCall>§uniform_4f_calls: Vec<FakeUniformFloatCall>§uniform_4fv_calls: Vec<FakeUniformFloatCall>§uniform_matrix_3fv_calls: Vec<FakeUniformMatrix3Call>§bound_array_buffer: u32§bound_element_array_buffer: u32§bound_vertex_array: u32§vertex_array_bindings: Vec<u32>§deleted_vertex_arrays: Vec<u32>§bound_framebuffer: u32§generated_framebuffers: Vec<u32>§deleted_framebuffers: Vec<u32>§framebuffer_bindings: Vec<u32>§framebuffer_texture_2d_calls: Vec<FakeFramebufferTexture2DCall>§framebuffer_renderbuffer_calls: Vec<FakeFramebufferRenderbufferCall>§blit_framebuffer_calls: Vec<FakeBlitFramebufferCall>§framebuffer_invalidations: Vec<Vec<u32>>§bound_renderbuffer: u32§generated_renderbuffers: Vec<u32>§deleted_renderbuffers: Vec<u32>§renderbuffer_bindings: Vec<u32>§renderbuffer_storage_calls: Vec<FakeRenderbufferStorageCall>§viewport_calls: Vec<(i32, i32, i32, i32)>§pack_alignment: i32§pack_alignment_calls: Vec<i32>§unpack_alignment: i32§unpack_alignment_calls: Vec<i32>§active_texture: u32§bound_texture_2d: u32§bound_texture_2d_units: Vec<(u32, u32)>§bound_texture_2d_array: u32§bound_texture_2d_array_units: Vec<(u32, u32)>§blend_enabled: bool§scissor_enabled: bool§enabled_capabilities: Vec<u32>§depth_function: Option<u32>§depth_mask: bool§depth_range_f_calls: Vec<[u32; 2]>§cull_face_mode: Option<u32>§front_face_winding: Option<u32>§stencil_func: Option<FakeStencilFuncCall>§stencil_mask: u32§stencil_op: Option<FakeStencilOpCall>§stencil_func_separate_calls: Vec<FakeStencilFuncSeparateCall>§stencil_mask_separate_calls: Vec<FakeStencilMaskSeparateCall>§stencil_op_separate_calls: Vec<FakeStencilOpSeparateCall>§color_write_mask: [bool; 4]§polygon_offset: Option<[u32; 2]>§generated_queries: Vec<u32>§deleted_queries: Vec<u32>§begin_query_calls: Vec<(u32, u32)>§end_query_calls: Vec<u32>§query_object_uiv_calls: Vec<FakeQueryObjectCall>§generated_syncs: Vec<usize>§client_wait_sync_calls: Vec<FakeClientWaitSyncCall>§wait_sync_calls: Vec<FakeWaitSyncCall>§deleted_syncs: Vec<usize>§read_pixels_calls: Vec<FakeReadPixelsCall>§read_buffer_calls: Vec<u32>§draw_buffers_calls: Vec<Vec<u32>>§scissor_calls: Vec<(i32, i32, i32, i32)>§enabled_vertex_attribs: Vec<u32>§vertex_attrib_pointer_calls: Vec<FakeVertexAttribPointerCall>

Trait Implementations§

Source§

impl Clone for FakeGlSnapshot

Source§

fn clone(&self) -> FakeGlSnapshot

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for FakeGlSnapshot

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for FakeGlSnapshot

Source§

fn default() -> FakeGlSnapshot

Returns the “default value” for a type. Read more
Source§

impl PartialEq for FakeGlSnapshot

Source§

fn eq(&self, other: &FakeGlSnapshot) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for FakeGlSnapshot

Source§

impl StructuralPartialEq for FakeGlSnapshot

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> 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> 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.