Class RTHandleSystem
Inheritance
RTHandleSystem
Syntax
public class RTHandleSystem : IDisposable
Constructors
RTHandleSystem()
Declaration
Methods
Alloc(Int32, Int32, Int32, DepthBits, GraphicsFormat, FilterMode, TextureWrapMode, TextureDimension, Boolean, Boolean, Boolean, Boolean, Int32, Single, MSAASamples, Boolean, Boolean, Boolean, RenderTextureMemoryless, String)
Declaration
public 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 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 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
DemandResize(RTHandleSystem.RTHandle)
Declaration
public void DemandResize(RTHandleSystem.RTHandle rth)
Parameters
Dispose()
Declaration
DumpRTInfo()
Declaration
public string DumpRTInfo()
Returns
GetMaxHeight()
Declaration
public int GetMaxHeight()
Returns
GetMaxWidth()
Declaration
Returns
Initialize(Int32, Int32, Boolean, MSAASamples)
Declaration
public 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 void Release(RTHandleSystem.RTHandle rth)
Parameters
ResetReferenceSize(Int32, Int32, MSAASamples)
Declaration
public void ResetReferenceSize(int width, int height, MSAASamples msaaSamples)
Parameters
| Type |
Name |
Description |
| Int32 |
width |
|
| Int32 |
height |
|
| MSAASamples |
msaaSamples |
|
SetHardwareDynamicResolutionState(Boolean)
Declaration
public void SetHardwareDynamicResolutionState(bool enableHWDynamicRes)
Parameters
| Type |
Name |
Description |
| Boolean |
enableHWDynamicRes |
|
SetReferenceSize(Int32, Int32, MSAASamples)
Declaration
public void SetReferenceSize(int width, int height, MSAASamples msaaSamples)
Parameters
| Type |
Name |
Description |
| Int32 |
width |
|
| Int32 |
height |
|
| MSAASamples |
msaaSamples |
|
SwitchResizeMode(RTHandleSystem.RTHandle, RTHandleSystem.ResizeMode)
Declaration
public void SwitchResizeMode(RTHandleSystem.RTHandle rth, RTHandleSystem.ResizeMode mode)
Parameters