[−][src]Trait openxr::Graphics
Static dispatch for OpenXR graphics bindings
The types and functions defined by this trait are an implementation detail, and should not be referenced externally.
Associated Types
type Requirements
Compatibility details within this graphics API
type SessionCreateInfo
Parameters required to construct a session for use with this graphics API
type Format: Copy
Swapchain image formats
type SwapchainImage
Identifiers for images to render to
Implementors
impl Graphics for Headless
[src]
type Requirements = ()
type Format = Void
type SessionCreateInfo = ()
type SwapchainImage = Void
fn raise_format(_: i64) -> Self::Format
[src]
fn lower_format(x: Self::Format) -> i64
[src]
fn requirements(_: &Instance, _: SystemId) -> Result<()>
[src]
unsafe fn create_session(
instance: &Instance,
system: SystemId,
_: &Self::SessionCreateInfo
) -> Result<Session>
[src]
instance: &Instance,
system: SystemId,
_: &Self::SessionCreateInfo
) -> Result<Session>
fn enumerate_swapchain_images(
_: &Swapchain<Self>
) -> Result<Vec<Self::SwapchainImage>>
[src]
_: &Swapchain<Self>
) -> Result<Vec<Self::SwapchainImage>>
impl Graphics for OpenGL
[src]
type Requirements = Requirements
type SessionCreateInfo = SessionCreateInfo
type Format = u32
type SwapchainImage = u32
fn raise_format(x: i64) -> u32
[src]
fn lower_format(x: u32) -> i64
[src]
fn requirements(inst: &Instance, system: SystemId) -> Result<Requirements>
[src]
unsafe fn create_session(
instance: &Instance,
system: SystemId,
info: &Self::SessionCreateInfo
) -> Result<Session>
[src]
instance: &Instance,
system: SystemId,
info: &Self::SessionCreateInfo
) -> Result<Session>
fn enumerate_swapchain_images(
swapchain: &Swapchain<Self>
) -> Result<Vec<Self::SwapchainImage>>
[src]
swapchain: &Swapchain<Self>
) -> Result<Vec<Self::SwapchainImage>>
impl Graphics for Vulkan
[src]
type Requirements = Requirements
type Format = VkFormat
type SessionCreateInfo = SessionCreateInfo
type SwapchainImage = VkImage
fn raise_format(x: i64) -> Self::Format
[src]
fn lower_format(x: Self::Format) -> i64
[src]
fn requirements(instance: &Instance, system: SystemId) -> Result<Requirements>
[src]
unsafe fn create_session(
instance: &Instance,
system: SystemId,
info: &Self::SessionCreateInfo
) -> Result<Session>
[src]
instance: &Instance,
system: SystemId,
info: &Self::SessionCreateInfo
) -> Result<Session>
fn enumerate_swapchain_images(
swapchain: &Swapchain<Self>
) -> Result<Vec<Self::SwapchainImage>>
[src]
swapchain: &Swapchain<Self>
) -> Result<Vec<Self::SwapchainImage>>