Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 801 vs 804 for /trunk/Source Code/Rendering/PostFX/CustomOperators/BloomPreRenderOperator.cpp

Diff revisions: vs.
  @@ -9,8 +9,8 @@
9 9
10 10 namespace Divide {
11 11
12 - BloomPreRenderOperator::BloomPreRenderOperator(GFXDevice& context, RenderTarget* hdrTarget, RenderTarget* ldrTarget)
13 - : PreRenderOperator(context, FilterType::FILTER_BLOOM, hdrTarget, ldrTarget)
12 + BloomPreRenderOperator::BloomPreRenderOperator(GFXDevice& context, ResourceCache& cache, RenderTarget* hdrTarget, RenderTarget* ldrTarget)
13 + : PreRenderOperator(context, cache, FilterType::FILTER_BLOOM, hdrTarget, ldrTarget)
14 14 {
15 15 for (U8 i = 0; i < 2; ++i) {
16 16 _bloomBlurBuffer[i] = _context.allocateRT(Util::StringFormat("Bloom_Blur_%d", i));
  @@ -24,15 +24,15 @@
24 24
25 25 ResourceDescriptor bloomCalc("bloom.BloomCalc");
26 26 bloomCalc.setThreadedLoading(false);
27 - _bloomCalc = CreateResource<ShaderProgram>(bloomCalc);
27 + _bloomCalc = CreateResource<ShaderProgram>(cache, bloomCalc);
28 28
29 29 ResourceDescriptor bloomApply("bloom.BloomApply");
30 30 bloomApply.setThreadedLoading(false);
31 - _bloomApply = CreateResource<ShaderProgram>(bloomApply);
31 + _bloomApply = CreateResource<ShaderProgram>(cache, bloomApply);
32 32
33 33 ResourceDescriptor blur("blur");
34 34 blur.setThreadedLoading(false);
35 - _blur = CreateResource<ShaderProgram>(blur);
35 + _blur = CreateResource<ShaderProgram>(cache, blur);
36 36
37 37 _blur->Uniform("kernelSize", 10);
38 38 _horizBlur = _blur->GetSubroutineIndex(ShaderType::FRAGMENT, "blurHorizontal");