Method BlitColorAndDepth
BlitColorAndDepth(RasterCommandBuffer, Texture, RenderTexture, Vector4, float, bool)
Blit a 2D texture and depth buffer.
Declaration
public static void BlitColorAndDepth(RasterCommandBuffer cmd, Texture sourceColor, RenderTexture sourceDepth, Vector4 scaleBias, float mipLevel, bool blitDepth)
Parameters
Type | Name | Description |
---|---|---|
RasterCommandBuffer | cmd | Command Buffer used for rendering. |
Texture | sourceColor | Source Texture for color. |
RenderTexture | sourceDepth | Source RenderTexture for depth. |
Vector4 | scaleBias | Scale and bias for sampling the input texture. |
float | mipLevel | Mip level to blit. |
bool | blitDepth | Enable depth blit. |
BlitColorAndDepth(CommandBuffer, Texture, RenderTexture, Vector4, float, bool)
Declaration
public static void BlitColorAndDepth(CommandBuffer cmd, Texture sourceColor, RenderTexture sourceDepth, Vector4 scaleBias, float mipLevel, bool blitDepth)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | |
Texture | sourceColor | |
RenderTexture | sourceDepth | |
Vector4 | scaleBias | |
float | mipLevel | |
bool | blitDepth |