[][src]Struct openvr_sys::VR_IVRCompositor_FnTable

#[repr(C)]pub struct VR_IVRCompositor_FnTable {
    pub SetTrackingSpace: Option<unsafe extern "C" fn(eOrigin: ETrackingUniverseOrigin)>,
    pub GetTrackingSpace: Option<unsafe extern "C" fn() -> ETrackingUniverseOrigin>,
    pub WaitGetPoses: Option<unsafe extern "C" fn(pRenderPoseArray: *mut TrackedDevicePose_t, unRenderPoseArrayCount: u32, pGamePoseArray: *mut TrackedDevicePose_t, unGamePoseArrayCount: u32) -> EVRCompositorError>,
    pub GetLastPoses: Option<unsafe extern "C" fn(pRenderPoseArray: *mut TrackedDevicePose_t, unRenderPoseArrayCount: u32, pGamePoseArray: *mut TrackedDevicePose_t, unGamePoseArrayCount: u32) -> EVRCompositorError>,
    pub GetLastPoseForTrackedDeviceIndex: Option<unsafe extern "C" fn(unDeviceIndex: TrackedDeviceIndex_t, pOutputPose: *mut TrackedDevicePose_t, pOutputGamePose: *mut TrackedDevicePose_t) -> EVRCompositorError>,
    pub Submit: Option<unsafe extern "C" fn(eEye: EVREye, pTexture: *mut Texture_t, pBounds: *mut VRTextureBounds_t, nSubmitFlags: EVRSubmitFlags) -> EVRCompositorError>,
    pub ClearLastSubmittedFrame: Option<unsafe extern "C" fn()>,
    pub PostPresentHandoff: Option<unsafe extern "C" fn()>,
    pub GetFrameTiming: Option<unsafe extern "C" fn(pTiming: *mut Compositor_FrameTiming, unFramesAgo: u32) -> bool>,
    pub GetFrameTimings: Option<unsafe extern "C" fn(pTiming: *mut Compositor_FrameTiming, nFrames: u32) -> u32>,
    pub GetFrameTimeRemaining: Option<unsafe extern "C" fn() -> f32>,
    pub GetCumulativeStats: Option<unsafe extern "C" fn(pStats: *mut Compositor_CumulativeStats, nStatsSizeInBytes: u32)>,
    pub FadeToColor: Option<unsafe extern "C" fn(fSeconds: f32, fRed: f32, fGreen: f32, fBlue: f32, fAlpha: f32, bBackground: bool)>,
    pub GetCurrentFadeColor: Option<unsafe extern "C" fn(bBackground: bool) -> HmdColor_t>,
    pub FadeGrid: Option<unsafe extern "C" fn(fSeconds: f32, bFadeIn: bool)>,
    pub GetCurrentGridAlpha: Option<unsafe extern "C" fn() -> f32>,
    pub SetSkyboxOverride: Option<unsafe extern "C" fn(pTextures: *mut Texture_t, unTextureCount: u32) -> EVRCompositorError>,
    pub ClearSkyboxOverride: Option<unsafe extern "C" fn()>,
    pub CompositorBringToFront: Option<unsafe extern "C" fn()>,
    pub CompositorGoToBack: Option<unsafe extern "C" fn()>,
    pub CompositorQuit: Option<unsafe extern "C" fn()>,
    pub IsFullscreen: Option<unsafe extern "C" fn() -> bool>,
    pub GetCurrentSceneFocusProcess: Option<unsafe extern "C" fn() -> u32>,
    pub GetLastFrameRenderer: Option<unsafe extern "C" fn() -> u32>,
    pub CanRenderScene: Option<unsafe extern "C" fn() -> bool>,
    pub ShowMirrorWindow: Option<unsafe extern "C" fn()>,
    pub HideMirrorWindow: Option<unsafe extern "C" fn()>,
    pub IsMirrorWindowVisible: Option<unsafe extern "C" fn() -> bool>,
    pub CompositorDumpImages: Option<unsafe extern "C" fn()>,
    pub ShouldAppRenderWithLowResources: Option<unsafe extern "C" fn() -> bool>,
    pub ForceInterleavedReprojectionOn: Option<unsafe extern "C" fn(bOverride: bool)>,
    pub ForceReconnectProcess: Option<unsafe extern "C" fn()>,
    pub SuspendRendering: Option<unsafe extern "C" fn(bSuspend: bool)>,
    pub GetMirrorTextureD3D11: Option<unsafe extern "C" fn(eEye: EVREye, pD3D11DeviceOrResource: *mut c_void, ppD3D11ShaderResourceView: *mut *mut c_void) -> EVRCompositorError>,
    pub ReleaseMirrorTextureD3D11: Option<unsafe extern "C" fn(pD3D11ShaderResourceView: *mut c_void)>,
    pub GetMirrorTextureGL: Option<unsafe extern "C" fn(eEye: EVREye, pglTextureId: *mut glUInt_t, pglSharedTextureHandle: *mut glSharedTextureHandle_t) -> EVRCompositorError>,
    pub ReleaseSharedGLTexture: Option<unsafe extern "C" fn(glTextureId: glUInt_t, glSharedTextureHandle: glSharedTextureHandle_t) -> bool>,
    pub LockGLSharedTextureForAccess: Option<unsafe extern "C" fn(glSharedTextureHandle: glSharedTextureHandle_t)>,
    pub UnlockGLSharedTextureForAccess: Option<unsafe extern "C" fn(glSharedTextureHandle: glSharedTextureHandle_t)>,
    pub GetVulkanInstanceExtensionsRequired: Option<unsafe extern "C" fn(pchValue: *mut c_char, unBufferSize: u32) -> u32>,
    pub GetVulkanDeviceExtensionsRequired: Option<unsafe extern "C" fn(pPhysicalDevice: *mut VkPhysicalDevice_T, pchValue: *mut c_char, unBufferSize: u32) -> u32>,
    pub SetExplicitTimingMode: Option<unsafe extern "C" fn(eTimingMode: EVRCompositorTimingMode)>,
    pub SubmitExplicitTimingData: Option<unsafe extern "C" fn() -> EVRCompositorError>,
    pub IsMotionSmoothingEnabled: Option<unsafe extern "C" fn() -> bool>,
    pub IsMotionSmoothingSupported: Option<unsafe extern "C" fn() -> bool>,
    pub IsCurrentSceneFocusAppLoading: Option<unsafe extern "C" fn() -> bool>,
}

Fields

SetTrackingSpace: Option<unsafe extern "C" fn(eOrigin: ETrackingUniverseOrigin)>GetTrackingSpace: Option<unsafe extern "C" fn() -> ETrackingUniverseOrigin>WaitGetPoses: Option<unsafe extern "C" fn(pRenderPoseArray: *mut TrackedDevicePose_t, unRenderPoseArrayCount: u32, pGamePoseArray: *mut TrackedDevicePose_t, unGamePoseArrayCount: u32) -> EVRCompositorError>GetLastPoses: Option<unsafe extern "C" fn(pRenderPoseArray: *mut TrackedDevicePose_t, unRenderPoseArrayCount: u32, pGamePoseArray: *mut TrackedDevicePose_t, unGamePoseArrayCount: u32) -> EVRCompositorError>GetLastPoseForTrackedDeviceIndex: Option<unsafe extern "C" fn(unDeviceIndex: TrackedDeviceIndex_t, pOutputPose: *mut TrackedDevicePose_t, pOutputGamePose: *mut TrackedDevicePose_t) -> EVRCompositorError>Submit: Option<unsafe extern "C" fn(eEye: EVREye, pTexture: *mut Texture_t, pBounds: *mut VRTextureBounds_t, nSubmitFlags: EVRSubmitFlags) -> EVRCompositorError>ClearLastSubmittedFrame: Option<unsafe extern "C" fn()>PostPresentHandoff: Option<unsafe extern "C" fn()>GetFrameTiming: Option<unsafe extern "C" fn(pTiming: *mut Compositor_FrameTiming, unFramesAgo: u32) -> bool>GetFrameTimings: Option<unsafe extern "C" fn(pTiming: *mut Compositor_FrameTiming, nFrames: u32) -> u32>GetFrameTimeRemaining: Option<unsafe extern "C" fn() -> f32>GetCumulativeStats: Option<unsafe extern "C" fn(pStats: *mut Compositor_CumulativeStats, nStatsSizeInBytes: u32)>FadeToColor: Option<unsafe extern "C" fn(fSeconds: f32, fRed: f32, fGreen: f32, fBlue: f32, fAlpha: f32, bBackground: bool)>GetCurrentFadeColor: Option<unsafe extern "C" fn(bBackground: bool) -> HmdColor_t>FadeGrid: Option<unsafe extern "C" fn(fSeconds: f32, bFadeIn: bool)>GetCurrentGridAlpha: Option<unsafe extern "C" fn() -> f32>SetSkyboxOverride: Option<unsafe extern "C" fn(pTextures: *mut Texture_t, unTextureCount: u32) -> EVRCompositorError>ClearSkyboxOverride: Option<unsafe extern "C" fn()>CompositorBringToFront: Option<unsafe extern "C" fn()>CompositorGoToBack: Option<unsafe extern "C" fn()>CompositorQuit: Option<unsafe extern "C" fn()>IsFullscreen: Option<unsafe extern "C" fn() -> bool>GetCurrentSceneFocusProcess: Option<unsafe extern "C" fn() -> u32>GetLastFrameRenderer: Option<unsafe extern "C" fn() -> u32>CanRenderScene: Option<unsafe extern "C" fn() -> bool>ShowMirrorWindow: Option<unsafe extern "C" fn()>HideMirrorWindow: Option<unsafe extern "C" fn()>IsMirrorWindowVisible: Option<unsafe extern "C" fn() -> bool>CompositorDumpImages: Option<unsafe extern "C" fn()>ShouldAppRenderWithLowResources: Option<unsafe extern "C" fn() -> bool>ForceInterleavedReprojectionOn: Option<unsafe extern "C" fn(bOverride: bool)>ForceReconnectProcess: Option<unsafe extern "C" fn()>SuspendRendering: Option<unsafe extern "C" fn(bSuspend: bool)>GetMirrorTextureD3D11: Option<unsafe extern "C" fn(eEye: EVREye, pD3D11DeviceOrResource: *mut c_void, ppD3D11ShaderResourceView: *mut *mut c_void) -> EVRCompositorError>ReleaseMirrorTextureD3D11: Option<unsafe extern "C" fn(pD3D11ShaderResourceView: *mut c_void)>GetMirrorTextureGL: Option<unsafe extern "C" fn(eEye: EVREye, pglTextureId: *mut glUInt_t, pglSharedTextureHandle: *mut glSharedTextureHandle_t) -> EVRCompositorError>ReleaseSharedGLTexture: Option<unsafe extern "C" fn(glTextureId: glUInt_t, glSharedTextureHandle: glSharedTextureHandle_t) -> bool>LockGLSharedTextureForAccess: Option<unsafe extern "C" fn(glSharedTextureHandle: glSharedTextureHandle_t)>UnlockGLSharedTextureForAccess: Option<unsafe extern "C" fn(glSharedTextureHandle: glSharedTextureHandle_t)>GetVulkanInstanceExtensionsRequired: Option<unsafe extern "C" fn(pchValue: *mut c_char, unBufferSize: u32) -> u32>GetVulkanDeviceExtensionsRequired: Option<unsafe extern "C" fn(pPhysicalDevice: *mut VkPhysicalDevice_T, pchValue: *mut c_char, unBufferSize: u32) -> u32>SetExplicitTimingMode: Option<unsafe extern "C" fn(eTimingMode: EVRCompositorTimingMode)>SubmitExplicitTimingData: Option<unsafe extern "C" fn() -> EVRCompositorError>IsMotionSmoothingEnabled: Option<unsafe extern "C" fn() -> bool>IsMotionSmoothingSupported: Option<unsafe extern "C" fn() -> bool>IsCurrentSceneFocusAppLoading: Option<unsafe extern "C" fn() -> bool>

Trait Implementations

impl Clone for VR_IVRCompositor_FnTable[src]

impl Copy for VR_IVRCompositor_FnTable[src]

impl Debug for VR_IVRCompositor_FnTable[src]

Auto Trait Implementations

impl RefUnwindSafe for VR_IVRCompositor_FnTable

impl Send for VR_IVRCompositor_FnTable

impl Sync for VR_IVRCompositor_FnTable

impl Unpin for VR_IVRCompositor_FnTable

impl UnwindSafe for VR_IVRCompositor_FnTable

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.