pub struct StubGlobalHooks;Expand description
A stub struct that intercept no commands, which implements GlobalHooks and
GlobalHooksInfo.
Trait Implementations§
Source§impl Default for StubGlobalHooks
impl Default for StubGlobalHooks
Source§fn default() -> StubGlobalHooks
fn default() -> StubGlobalHooks
Returns the “default value” for a type. Read more
Source§impl GlobalHooks for StubGlobalHooks
impl GlobalHooks for StubGlobalHooks
Source§fn create_instance(
&self,
_p_create_info: &InstanceCreateInfo,
_layer_instance_link: &VkLayerInstanceLink,
_p_allocator: Option<&AllocationCallbacks>,
_p_instance: *mut Instance,
) -> LayerResult<VkResult<()>>
fn create_instance( &self, _p_create_info: &InstanceCreateInfo, _layer_instance_link: &VkLayerInstanceLink, _p_allocator: Option<&AllocationCallbacks>, _p_instance: *mut Instance, ) -> LayerResult<VkResult<()>>
The logic to intercept the
vkCreateInstance function. Read moreSource§impl GlobalHooksInfo for StubGlobalHooks
impl GlobalHooksInfo for StubGlobalHooks
Source§type HooksType = StubGlobalHooks
type HooksType = StubGlobalHooks
The underlying
GlobalHooks type that implements the core logic to intercept
global commands. Read moreSource§type HooksRefType<'a> = &'a StubGlobalHooks
type HooksRefType<'a> = &'a StubGlobalHooks
A type that can be dereferencing to
GlobalHooksInfo::HooksType. Usually just
&GlobalHooksInfo::HooksType. Read moreSource§fn hooked_commands() -> &'static [LayerVulkanCommand]
fn hooked_commands() -> &'static [LayerVulkanCommand]
Returns a slice of
global commands
that the layer implementation needs to intercept. Read more
Source§fn hooks(&self) -> &Self
fn hooks(&self) -> &Self
Returns the reference of the
GlobalHooksInfo::HooksType. Read moreAuto Trait Implementations§
impl Freeze for StubGlobalHooks
impl RefUnwindSafe for StubGlobalHooks
impl Send for StubGlobalHooks
impl Sync for StubGlobalHooks
impl Unpin for StubGlobalHooks
impl UnwindSafe for StubGlobalHooks
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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