Method BlitTexture
BlitTexture(RasterCommandBuffer, RTHandle, Vector4, float, bool)
Blit a RTHandle texture.
Declaration
public static void BlitTexture(RasterCommandBuffer cmd, RTHandle source, Vector4 scaleBias, float mipLevel, bool bilinear)
Parameters
Type | Name | Description |
---|---|---|
RasterCommandBuffer | cmd | Command Buffer used for rendering. |
RTHandle | source | Source RTHandle. |
Vector4 | scaleBias | Scale and bias for sampling the input texture. |
float | mipLevel | Mip level to blit. |
bool | bilinear | Enable bilinear filtering. |
BlitTexture(CommandBuffer, RTHandle, Vector4, float, bool)
Declaration
public static void BlitTexture(CommandBuffer cmd, RTHandle source, Vector4 scaleBias, float mipLevel, bool bilinear)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | |
RTHandle | source | |
Vector4 | scaleBias | |
float | mipLevel | |
bool | bilinear |
BlitTexture(RasterCommandBuffer, RTHandle, Vector4, Material, int)
Blit a RTHandle texture
Declaration
public static void BlitTexture(RasterCommandBuffer cmd, RTHandle source, Vector4 scaleBias, Material material, int pass)
Parameters
Type | Name | Description |
---|---|---|
RasterCommandBuffer | cmd | Command Buffer used for rendering. |
RTHandle | source | Source RTHandle. |
Vector4 | scaleBias | Scale and bias for sampling the input texture. |
Material | material | Material to invoke when blitting. |
int | pass | Pass idx within the material to invoke. |
BlitTexture(CommandBuffer, RTHandle, Vector4, Material, int)
Declaration
public static void BlitTexture(CommandBuffer cmd, RTHandle source, Vector4 scaleBias, Material material, int pass)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | |
RTHandle | source | |
Vector4 | scaleBias | |
Material | material | |
int | pass |
BlitTexture(RasterCommandBuffer, RenderTargetIdentifier, Vector4, Material, int)
Blit a RTHandle texture
Declaration
public static void BlitTexture(RasterCommandBuffer cmd, RenderTargetIdentifier source, Vector4 scaleBias, Material material, int pass)
Parameters
Type | Name | Description |
---|---|---|
RasterCommandBuffer | cmd | Command Buffer used for rendering. |
RenderTargetIdentifier | source | Source render target. |
Vector4 | scaleBias | Scale and bias for sampling the input texture. |
Material | material | Material to invoke when blitting. |
int | pass | Pass idx within the material to invoke. |
BlitTexture(CommandBuffer, RenderTargetIdentifier, Vector4, Material, int)
Declaration
public static void BlitTexture(CommandBuffer cmd, RenderTargetIdentifier source, Vector4 scaleBias, Material material, int pass)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | |
RenderTargetIdentifier | source | |
Vector4 | scaleBias | |
Material | material | |
int | pass |
BlitTexture(CommandBuffer, RenderTargetIdentifier, RenderTargetIdentifier, Material, int)
Blit a Texture with a specified material. The reference name "_BlitTexture" will be used to bind the input texture.
Declaration
public static void BlitTexture(CommandBuffer cmd, RenderTargetIdentifier source, RenderTargetIdentifier destination, Material material, int pass)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | Command Buffer used for rendering. |
RenderTargetIdentifier | source | Source render target. |
RenderTargetIdentifier | destination | Destination render target. |
Material | material | Material to invoke when blitting. |
int | pass | Pass idx within the material to invoke. |
BlitTexture(CommandBuffer, RenderTargetIdentifier, RenderTargetIdentifier, RenderBufferLoadAction, RenderBufferStoreAction, Material, int)
Blit a Texture with a specified material. The reference name "_BlitTexture" will be used to bind the input texture.
Declaration
public static void BlitTexture(CommandBuffer cmd, RenderTargetIdentifier source, RenderTargetIdentifier destination, RenderBufferLoadAction loadAction, RenderBufferStoreAction storeAction, Material material, int pass)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | Command Buffer used for rendering. |
RenderTargetIdentifier | source | Source render target. |
RenderTargetIdentifier | destination | Destination render target. |
RenderBufferLoadAction | loadAction | Load action. |
RenderBufferStoreAction | storeAction | Store action. |
Material | material | Material to invoke when blitting. |
int | pass | Pass idx within the material to invoke. |
BlitTexture(CommandBuffer, Vector4, Material, int)
Blit a Texture with a given Material. Unity uses the reference name _BlitTexture
to bind the input texture. Set the destination parameter before using this method.
Declaration
public static void BlitTexture(CommandBuffer cmd, Vector4 scaleBias, Material material, int pass)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | Command Buffer used for rendering. |
Vector4 | scaleBias | Scale and bias values for sampling the input texture. |
Material | material | Material to invoke when blitting. |
int | pass | Pass index within the Material to invoke. |