Class RTHandles
Syntax
public static class RTHandles
Properties
maxHeight
Declaration
public static int maxHeight { get; }
Property Value
maxWidth
Declaration
public static int maxWidth { get; }
Property Value
rtHandleProperties
Declaration
public static RTHandleProperties rtHandleProperties { get; }
Property Value
Methods
Alloc(Int32, Int32, Int32, DepthBits, GraphicsFormat, FilterMode, TextureWrapMode, TextureDimension, Boolean, Boolean, Boolean, Boolean, Int32, Single, MSAASamples, Boolean, Boolean, Boolean, RenderTextureMemoryless, String)
Declaration
public static RTHandleSystem.RTHandle Alloc(int width, int height, int slices = 1, DepthBits depthBufferBits = DepthBits.None, GraphicsFormat colorFormat = null, FilterMode filterMode = null, TextureWrapMode wrapMode = null, TextureDimension dimension = null, bool enableRandomWrite = false, bool useMipMap = false, bool autoGenerateMips = true, bool isShadowMap = false, int anisoLevel = 1, float mipMapBias = 0F, MSAASamples msaaSamples = null, bool bindTextureMS = false, bool useDynamicScale = false, bool xrInstancing = false, RenderTextureMemoryless memoryless = null, string name = "")
Parameters
Returns
Alloc(ScaleFunc, Int32, DepthBits, GraphicsFormat, FilterMode, TextureWrapMode, TextureDimension, Boolean, Boolean, Boolean, Boolean, Int32, Single, Boolean, Boolean, Boolean, Boolean, RenderTextureMemoryless, String)
Declaration
public static RTHandleSystem.RTHandle Alloc(ScaleFunc scaleFunc, int slices = 1, DepthBits depthBufferBits = DepthBits.None, GraphicsFormat colorFormat = null, FilterMode filterMode = null, TextureWrapMode wrapMode = null, TextureDimension dimension = null, bool enableRandomWrite = false, bool useMipMap = false, bool autoGenerateMips = true, bool isShadowMap = false, int anisoLevel = 1, float mipMapBias = 0F, bool enableMSAA = false, bool bindTextureMS = false, bool useDynamicScale = false, bool xrInstancing = false, RenderTextureMemoryless memoryless = null, string name = "")
Parameters
Returns
Alloc(Vector2, Int32, DepthBits, GraphicsFormat, FilterMode, TextureWrapMode, TextureDimension, Boolean, Boolean, Boolean, Boolean, Int32, Single, Boolean, Boolean, Boolean, Boolean, RenderTextureMemoryless, String)
Declaration
public static RTHandleSystem.RTHandle Alloc(Vector2 scaleFactor, int slices = 1, DepthBits depthBufferBits = DepthBits.None, GraphicsFormat colorFormat = null, FilterMode filterMode = null, TextureWrapMode wrapMode = null, TextureDimension dimension = null, bool enableRandomWrite = false, bool useMipMap = false, bool autoGenerateMips = true, bool isShadowMap = false, int anisoLevel = 1, float mipMapBias = 0F, bool enableMSAA = false, bool bindTextureMS = false, bool useDynamicScale = false, bool xrInstancing = false, RenderTextureMemoryless memoryless = null, string name = "")
Parameters
Type |
Name |
Description |
Vector2 |
scaleFactor |
|
Int32 |
slices |
|
DepthBits |
depthBufferBits |
|
GraphicsFormat |
colorFormat |
|
FilterMode |
filterMode |
|
TextureWrapMode |
wrapMode |
|
TextureDimension |
dimension |
|
Boolean |
enableRandomWrite |
|
Boolean |
useMipMap |
|
Boolean |
autoGenerateMips |
|
Boolean |
isShadowMap |
|
Int32 |
anisoLevel |
|
Single |
mipMapBias |
|
Boolean |
enableMSAA |
|
Boolean |
bindTextureMS |
|
Boolean |
useDynamicScale |
|
Boolean |
xrInstancing |
|
RenderTextureMemoryless |
memoryless |
|
String |
name |
|
Returns
Initialize(Int32, Int32, Boolean, MSAASamples)
Declaration
public static void Initialize(int width, int height, bool scaledRTsupportsMSAA, MSAASamples scaledRTMSAASamples)
Parameters
Type |
Name |
Description |
Int32 |
width |
|
Int32 |
height |
|
Boolean |
scaledRTsupportsMSAA |
|
MSAASamples |
scaledRTMSAASamples |
|
Release(RTHandleSystem.RTHandle)
Declaration
public static void Release(RTHandleSystem.RTHandle rth)
Parameters
SetHardwareDynamicResolutionState(Boolean)
Declaration
public static void SetHardwareDynamicResolutionState(bool hwDynamicResRequested)
Parameters
Type |
Name |
Description |
Boolean |
hwDynamicResRequested |
|
SetReferenceSize(Int32, Int32, MSAASamples)
Declaration
public static void SetReferenceSize(int width, int height, MSAASamples msaaSamples)
Parameters
Type |
Name |
Description |
Int32 |
width |
|
Int32 |
height |
|
MSAASamples |
msaaSamples |
|