Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 911 vs 912 for /trunk/Source Code/Rendering/PostFX/CustomOperators/DoFPreRenderOperator.cpp

Diff revisions: vs.
  @@ -15,13 +15,13 @@
15 15 : PreRenderOperator(context, parent, cache, FilterType::FILTER_DEPTH_OF_FIELD)
16 16 {
17 17 vectorImpl<RTAttachmentDescriptor> att = {
18 - { parent.inputRT().getAttachment(RTAttachment::Type::Colour, 0).texture()->getDescriptor(), RTAttachment::Type::Colour },
18 + { parent.inputRT().getAttachment(RTAttachmentType::Colour, 0).texture()->getDescriptor(), RTAttachmentType::Colour },
19 19 };
20 20
21 21 RenderTargetDescriptor desc = {};
22 22 desc._name = "DoF";
23 23 desc._resolution = vec2<U16>(parent.inputRT().getWidth(), parent.inputRT().getHeight());
24 - desc._attachmentCount = to_U32(att.size());
24 + desc._attachmentCount = to_U8(att.size());
25 25 desc._attachments = att.data();
26 26
27 27 _samplerCopy = _context.allocateRT(desc);
  @@ -48,8 +48,8 @@
48 48 /*
49 49 RenderTarget* screen = &_parent.inputRT();
50 50 _samplerCopy._rt->blitFrom(screen);
51 - _samplerCopy._rt->bind(to_base(ShaderProgram::TextureUsage::UNIT0), RTAttachment::Type::Colour, 0); // screenFB
52 - screen->bind(to_base(ShaderProgram::TextureUsage::UNIT1), RTAttachment::Type::Depth, 0); // depthFB
51 + _samplerCopy._rt->bind(to_base(ShaderProgram::TextureUsage::UNIT0), RTAttachmentType::Colour, 0); // screenFB
52 + screen->bind(to_base(ShaderProgram::TextureUsage::UNIT1), RTAttachmentType::Depth, 0); // depthFB
53 53
54 54 screen->begin(_screenOnlyDraw);
55 55 GenericDrawCommand triangleCmd;