浏览代码

Add size overrides to CreateTemporaryRT

/feature-ReflectionProbeFit
Robert Srinivasiah 7 年前
当前提交
bb14bba1
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 10
      ScriptableRenderPipeline/HDRenderPipeline/HDRenderPipeline.cs

10
ScriptableRenderPipeline/HDRenderPipeline/HDRenderPipeline.cs


}
void CreateTemporaryRT(CommandBuffer cmd, int nameID, HDCamera hdCamera,
int depthBufferBits, FilterMode filter, RenderTextureFormat format,
RenderTextureReadWrite readWrite = RenderTextureReadWrite.Default, int msaaSamples = 1, bool enableRandomWrite = false)
int depthBufferBits, FilterMode filter, RenderTextureFormat format,
RenderTextureReadWrite readWrite = RenderTextureReadWrite.Default, int msaaSamples = 1, bool enableRandomWrite = false,
int widthOverride = 0, int heightOverride = 0)
{
var localDesc = hdCamera.renderTextureDesc;
localDesc.depthBufferBits = depthBufferBits;

localDesc.enableRandomWrite = enableRandomWrite;
if (widthOverride > 0)
localDesc.width = widthOverride;
if (heightOverride > 0)
localDesc.height = heightOverride;
cmd.GetTemporaryRT(nameID, localDesc, filter);
}

正在加载...
取消
保存