Class CVRCompositor
Inheritance
System.Object
CVRCompositor
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Assembly-CSharp.dll
Syntax
public class CVRCompositor
Methods
CanRenderScene()
Declaration
public bool CanRenderScene()
Returns
Type |
Description |
System.Boolean |
|
ClearLastSubmittedFrame()
Declaration
public void ClearLastSubmittedFrame()
ClearSkyboxOverride()
Declaration
public void ClearSkyboxOverride()
CompositorBringToFront()
Declaration
public void CompositorBringToFront()
CompositorDumpImages()
Declaration
public void CompositorDumpImages()
CompositorGoToBack()
Declaration
public void CompositorGoToBack()
CompositorQuit()
Declaration
public void CompositorQuit()
FadeGrid(Single, Boolean)
Declaration
public void FadeGrid(float fSeconds, bool bFadeIn)
Parameters
Type |
Name |
Description |
System.Single |
fSeconds |
|
System.Boolean |
bFadeIn |
|
FadeToColor(Single, Single, Single, Single, Single, Boolean)
Declaration
public void FadeToColor(float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, bool bBackground)
Parameters
Type |
Name |
Description |
System.Single |
fSeconds |
|
System.Single |
fRed |
|
System.Single |
fGreen |
|
System.Single |
fBlue |
|
System.Single |
fAlpha |
|
System.Boolean |
bBackground |
|
ForceInterleavedReprojectionOn(Boolean)
Declaration
public void ForceInterleavedReprojectionOn(bool bOverride)
Parameters
Type |
Name |
Description |
System.Boolean |
bOverride |
|
ForceReconnectProcess()
Declaration
public void ForceReconnectProcess()
GetCumulativeStats(ref Compositor_CumulativeStats, UInt32)
Declaration
public void GetCumulativeStats(ref Compositor_CumulativeStats pStats, uint nStatsSizeInBytes)
Parameters
GetCurrentFadeColor(Boolean)
Declaration
public HmdColor_t GetCurrentFadeColor(bool bBackground)
Parameters
Type |
Name |
Description |
System.Boolean |
bBackground |
|
Returns
GetCurrentGridAlpha()
Declaration
public float GetCurrentGridAlpha()
Returns
Type |
Description |
System.Single |
|
GetCurrentSceneFocusProcess()
Declaration
public uint GetCurrentSceneFocusProcess()
Returns
Type |
Description |
System.UInt32 |
|
GetFrameTimeRemaining()
Declaration
public float GetFrameTimeRemaining()
Returns
Type |
Description |
System.Single |
|
GetFrameTiming(ref Compositor_FrameTiming, UInt32)
Declaration
public bool GetFrameTiming(ref Compositor_FrameTiming pTiming, uint unFramesAgo)
Parameters
Returns
Type |
Description |
System.Boolean |
|
GetFrameTimings(ref Compositor_FrameTiming, UInt32)
Declaration
public uint GetFrameTimings(ref Compositor_FrameTiming pTiming, uint nFrames)
Parameters
Returns
Type |
Description |
System.UInt32 |
|
GetLastFrameRenderer()
Declaration
public uint GetLastFrameRenderer()
Returns
Type |
Description |
System.UInt32 |
|
GetLastPoseForTrackedDeviceIndex(UInt32, ref TrackedDevicePose_t, ref TrackedDevicePose_t)
Declaration
public EVRCompositorError GetLastPoseForTrackedDeviceIndex(uint unDeviceIndex, ref TrackedDevicePose_t pOutputPose, ref TrackedDevicePose_t pOutputGamePose)
Parameters
Returns
GetLastPoses(TrackedDevicePose_t[], TrackedDevicePose_t[])
Declaration
public EVRCompositorError GetLastPoses(TrackedDevicePose_t[] pRenderPoseArray, TrackedDevicePose_t[] pGamePoseArray)
Parameters
Returns
GetMirrorTextureD3D11(EVREye, IntPtr, ref IntPtr)
Declaration
public EVRCompositorError GetMirrorTextureD3D11(EVREye eEye, IntPtr pD3D11DeviceOrResource, ref IntPtr ppD3D11ShaderResourceView)
Parameters
Type |
Name |
Description |
EVREye |
eEye |
|
System.IntPtr |
pD3D11DeviceOrResource |
|
System.IntPtr |
ppD3D11ShaderResourceView |
|
Returns
GetMirrorTextureGL(EVREye, ref UInt32, IntPtr)
Declaration
public EVRCompositorError GetMirrorTextureGL(EVREye eEye, ref uint pglTextureId, IntPtr pglSharedTextureHandle)
Parameters
Type |
Name |
Description |
EVREye |
eEye |
|
System.UInt32 |
pglTextureId |
|
System.IntPtr |
pglSharedTextureHandle |
|
Returns
GetTrackingSpace()
Declaration
public ETrackingUniverseOrigin GetTrackingSpace()
Returns
GetVulkanDeviceExtensionsRequired(IntPtr, StringBuilder, UInt32)
Declaration
public uint GetVulkanDeviceExtensionsRequired(IntPtr pPhysicalDevice, StringBuilder pchValue, uint unBufferSize)
Parameters
Type |
Name |
Description |
System.IntPtr |
pPhysicalDevice |
|
System.Text.StringBuilder |
pchValue |
|
System.UInt32 |
unBufferSize |
|
Returns
Type |
Description |
System.UInt32 |
|
GetVulkanInstanceExtensionsRequired(StringBuilder, UInt32)
Declaration
public uint GetVulkanInstanceExtensionsRequired(StringBuilder pchValue, uint unBufferSize)
Parameters
Type |
Name |
Description |
System.Text.StringBuilder |
pchValue |
|
System.UInt32 |
unBufferSize |
|
Returns
Type |
Description |
System.UInt32 |
|
HideMirrorWindow()
Declaration
public void HideMirrorWindow()
IsFullscreen()
Declaration
public bool IsFullscreen()
Returns
Type |
Description |
System.Boolean |
|
IsMirrorWindowVisible()
Declaration
public bool IsMirrorWindowVisible()
Returns
Type |
Description |
System.Boolean |
|
IsMotionSmoothingEnabled()
Declaration
public bool IsMotionSmoothingEnabled()
Returns
Type |
Description |
System.Boolean |
|
LockGLSharedTextureForAccess(IntPtr)
Declaration
public void LockGLSharedTextureForAccess(IntPtr glSharedTextureHandle)
Parameters
Type |
Name |
Description |
System.IntPtr |
glSharedTextureHandle |
|
PostPresentHandoff()
Declaration
public void PostPresentHandoff()
ReleaseMirrorTextureD3D11(IntPtr)
Declaration
public void ReleaseMirrorTextureD3D11(IntPtr pD3D11ShaderResourceView)
Parameters
Type |
Name |
Description |
System.IntPtr |
pD3D11ShaderResourceView |
|
ReleaseSharedGLTexture(UInt32, IntPtr)
Declaration
public bool ReleaseSharedGLTexture(uint glTextureId, IntPtr glSharedTextureHandle)
Parameters
Type |
Name |
Description |
System.UInt32 |
glTextureId |
|
System.IntPtr |
glSharedTextureHandle |
|
Returns
Type |
Description |
System.Boolean |
|
SetExplicitTimingMode(EVRCompositorTimingMode)
Declaration
public void SetExplicitTimingMode(EVRCompositorTimingMode eTimingMode)
Parameters
SetSkyboxOverride(Texture_t[])
Declaration
public EVRCompositorError SetSkyboxOverride(Texture_t[] pTextures)
Parameters
Returns
SetTrackingSpace(ETrackingUniverseOrigin)
Declaration
public void SetTrackingSpace(ETrackingUniverseOrigin eOrigin)
Parameters
ShouldAppRenderWithLowResources()
Declaration
public bool ShouldAppRenderWithLowResources()
Returns
Type |
Description |
System.Boolean |
|
ShowMirrorWindow()
Declaration
public void ShowMirrorWindow()
Submit(EVREye, ref Texture_t, ref VRTextureBounds_t, EVRSubmitFlags)
Declaration
public EVRCompositorError Submit(EVREye eEye, ref Texture_t pTexture, ref VRTextureBounds_t pBounds, EVRSubmitFlags nSubmitFlags)
Parameters
Returns
SubmitExplicitTimingData()
Declaration
public EVRCompositorError SubmitExplicitTimingData()
Returns
SuspendRendering(Boolean)
Declaration
public void SuspendRendering(bool bSuspend)
Parameters
Type |
Name |
Description |
System.Boolean |
bSuspend |
|
UnlockGLSharedTextureForAccess(IntPtr)
Declaration
public void UnlockGLSharedTextureForAccess(IntPtr glSharedTextureHandle)
Parameters
Type |
Name |
Description |
System.IntPtr |
glSharedTextureHandle |
|
WaitGetPoses(TrackedDevicePose_t[], TrackedDevicePose_t[])
Declaration
public EVRCompositorError WaitGetPoses(TrackedDevicePose_t[] pRenderPoseArray, TrackedDevicePose_t[] pGamePoseArray)
Parameters
Returns