Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 950 vs 953 for /trunk/Source Code/Rendering/PostFX/CustomOperators/BloomPreRenderOperator.cpp

Diff revisions: vs.
  @@ -95,7 +95,7 @@
95 95
96 96 pipelineDescriptor._shaderProgram = _bloomCalc;
97 97 GFX::BindPipelineCommand pipelineCmd;
98 - pipelineCmd._pipeline = _context.newPipeline(pipelineDescriptor);
98 + pipelineCmd._pipeline = &_context.newPipeline(pipelineDescriptor);
99 99 GFX::BindPipeline(bufferInOut, pipelineCmd);
100 100
101 101 // Step 1: generate bloom
  @@ -122,7 +122,7 @@
122 122 // Blur horizontally
123 123 pipelineDescriptor._shaderProgram = _blur;
124 124 pipelineDescriptor._shaderFunctions[ShaderType::FRAGMENT].push_back(_horizBlur);
125 - pipelineCmd._pipeline = _context.newPipeline(pipelineDescriptor);
125 + pipelineCmd._pipeline = &_context.newPipeline(pipelineDescriptor);
126 126 GFX::BindPipeline(bufferInOut, pipelineCmd);
127 127
128 128 data = _bloomOutput._rt->getAttachment(RTAttachmentType::Colour, 0).texture()->getData();
  @@ -144,7 +144,7 @@
144 144 // Blur vertically (recycle the render target. We have a copy)
145 145 pipelineDescriptor._shaderProgram = _blur;
146 146 pipelineDescriptor._shaderFunctions[ShaderType::FRAGMENT].front() = _vertBlur;
147 - pipelineCmd._pipeline = _context.newPipeline(pipelineDescriptor);
147 + pipelineCmd._pipeline = &_context.newPipeline(pipelineDescriptor);
148 148 GFX::BindPipeline(bufferInOut, pipelineCmd);
149 149
150 150 data = _bloomBlurBuffer[0]._rt->getAttachment(RTAttachmentType::Colour, 0).texture()->getData();
  @@ -176,7 +176,7 @@
176 176
177 177 pipelineDescriptor._shaderProgram = _bloomApply;
178 178 pipelineDescriptor._shaderFunctions.clear();
179 - pipelineCmd._pipeline = _context.newPipeline(pipelineDescriptor);
179 + pipelineCmd._pipeline = &_context.newPipeline(pipelineDescriptor);
180 180 GFX::BindPipeline(bufferInOut, pipelineCmd);
181 181
182 182 pushConstantsCommand._constants = _bloomApplyConstants;