Struct UnityGraphicsVulkanV2

Source
pub struct UnityGraphicsVulkanV2 { /* private fields */ }

Implementations§

Source§

impl UnityGraphicsVulkanV2

Source

pub unsafe fn intercept_initialization( &self, func: VulkanInitCallback, user_data: *mut c_void, )

Source

pub unsafe fn intercept_vulkan_api( &self, name: *const c_char, func: PFN_vkVoidFunction, ) -> PFN_vkVoidFunction

Source

pub fn configure_event( &self, event_id: i32, plugin_event_config: &VulkanPluginEventConfig, )

Source

pub fn instance(&self) -> VulkanInstance

Source

pub fn command_recording_state( &self, queue_access: VulkanGraphicsQueueAccess, ) -> Option<VulkanRecordingState>

Source

pub unsafe fn access_texture( &self, native_texture: *mut c_void, sub_resource: Option<&ImageSubresource>, layout: ImageLayout, pipeline_stage_flags: PipelineStageFlags, access_flags: AccessFlags, access_mode: VulkanResourceAccessMode, ) -> Option<VulkanImage>

Source

pub unsafe fn access_render_buffer_texture( &self, native_render_buffer: RenderBuffer, sub_resource: Option<&ImageSubresource>, layout: ImageLayout, pipeline_stage_flags: PipelineStageFlags, access_flags: AccessFlags, access_mode: VulkanResourceAccessMode, ) -> Option<VulkanImage>

Source

pub unsafe fn access_render_buffer_resolve_texture( &self, native_render_buffer: RenderBuffer, sub_resource: Option<&ImageSubresource>, layout: ImageLayout, pipeline_stage_flags: PipelineStageFlags, access_flags: AccessFlags, access_mode: VulkanResourceAccessMode, ) -> Option<VulkanImage>

Source

pub unsafe fn access_buffer( &self, native_buffer: *mut c_void, pipeline_stage_flags: PipelineStageFlags, access_flags: AccessFlags, access_mode: VulkanResourceAccessMode, ) -> Option<VulkanImage>

Source

pub fn ensure_outside_render_pass(&self)

Source

pub fn ensure_inside_render_pass(&self)

Source

pub unsafe fn access_queue( &self, callback: UnityRenderingEventAndData, event_id: c_int, user_data: *mut c_void, flush: bool, )

Source

pub fn configure_swapchain( &self, swapchain_config: &VulkanSwapchainConfiguration, ) -> bool

Source

pub unsafe fn access_texture_by_id( &self, texture_id: TextureID, sub_resource: Option<&ImageSubresource>, layout: ImageLayout, pipeline_stage_flags: PipelineStageFlags, access_flags: AccessFlags, access_mode: VulkanResourceAccessMode, ) -> Option<VulkanImage>

Source

pub unsafe fn add_intercept_initialization( &self, func: VulkanInitCallback, user_data: *mut c_void, priority: i32, ) -> bool

Source

pub unsafe fn remove_intercept_initialization( &self, func: VulkanInitCallback, ) -> bool

Trait Implementations§

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.