Subversion Repository Public Repository

Divide-Framework

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#include "stdafx.h"

#include "Headers/RTAttachment.h"

#include "Headers/RenderTarget.h"

#include "Core/Headers/Kernel.h"
#include "Core/Headers/StringHelper.h"
#include "Core/Resources/Headers/ResourceCache.h"
#include "Platform/Video/Headers/GFXDevice.h"
#include "Platform/Video/Textures/Headers/Texture.h"

namespace Divide {

RTAttachment::RTAttachment(const RTAttachmentDescriptor& descriptor)
    : _descriptor(descriptor),
      _texture(nullptr),
      _changed(false),
      _mipWriteLevel(0),
      _writeLayer(0),
      _binding(0)
{
}

RTAttachment::~RTAttachment()
{
}

const Texture_ptr& RTAttachment::texture() const {
    return _texture;
}

void RTAttachment::texture(const Texture_ptr& tex) {
    _texture = tex;
    _changed = true;
}

bool RTAttachment::used() const {
    return _texture != nullptr;
}

void RTAttachment::mipWriteLevel(U16 level) {
    _mipWriteLevel = level;
}

U16 RTAttachment::mipWriteLevel() const {
    return _mipWriteLevel;
}

void RTAttachment::writeLayer(U16 layer) {
    _writeLayer = layer;
}

U16 RTAttachment::writeLayer() const {
    return _writeLayer;
}

bool RTAttachment::changed() const {
    return _changed;
}

void RTAttachment::clearColour(const FColour& clearColour) {
    _descriptor._clearColour.set(clearColour);
}

const FColour& RTAttachment::clearColour() const {
    return _descriptor._clearColour;
}

void RTAttachment::clearChanged() {
    _changed = false;
}

U32 RTAttachment::binding() const {
    return _binding;
}

void RTAttachment::binding(U32 binding) {
    _binding = binding;
}

const RTAttachmentDescriptor& RTAttachment::descriptor() const {
    return _descriptor;
}
}; //namespace Divide

Commits for Divide-Framework/trunk/Source Code/Platform/Video/Buffers/RenderTarget/RTAttachment.cpp

Diff revisions: vs.
Revision Author Commited Message
1004 Diff Diff IonutCava picture IonutCava Wed 20 Dec, 2017 17:16:32 +0000

[Ionut]
- More GUI cleanup (added multiple GUIButton events)
- Typedef vec4<U8> and vec4<F32> to UColour and FColour respectively for easier to read code.

912 Diff Diff IonutCava picture IonutCava Sun 02 Jul, 2017 23:42:39 +0000

[Ionut]
- Add experimental Weighted Blended Order Independed Transparency (ref: http://casual-effects.blogspot.co.uk/2015/03/implemented-weighted-blended-order.html)
— Add per drawbuffer blend
— All translucent renderbin items go via the new OIT 2-step rendering: accumulation and composition
- Make sure we have proper blend enabled for text rendering
- Add a primitive form of PushConstants (unused yet. Emulated via Uniform calls)
- Fix bug with XMLParser not using case insensitive key lookups

909 Diff Diff IonutCava picture IonutCava Thu 29 Jun, 2017 23:57:18 +0000

[Ionut]
- Rework RenderTarget class
— RTAttachment now deal with textures directly
— RT size needs to be specified upfront
- Application class is no longer a Singleton but passed around in the PlatformContext

907 Diff Diff IonutCava picture IonutCava Wed 28 Jun, 2017 23:16:40 +0000

[Ionut]
- Rework texture loading, mip map generation, sampler usage, etc
- ResourceDescriptor for textures now ONLY takes a TextureDescriptor as a property descriptor. Sampler must be assigned to the tex descriptor:
— ToDo: Separate samplers completely from textures and assign them from a pool to textures at bind time

890 Diff Diff IonutCava picture IonutCava Sun 14 May, 2017 20:54:59 +0000

[Ionut]
- Add pre-compiled header support
- Initial code for per-stage tessellation computation

809 Diff Diff IonutCava picture IonutCava Tue 10 Jan, 2017 17:16:26 +0000

[IonutCava]
- Move velocity calc to the normal colour pass.
- Optimise glFramebuffer and cleanup RTAttachment class

807 Diff Diff IonutCava picture IonutCava Mon 09 Jan, 2017 17:06:26 +0000

[IonutCava]
- Split PlatformDefines.h into 2. Move data type defines to PlatformDataTypes.h
- Continue to improve velocity map calculation
- Remove “destroy()” calls from most classes. Attempt to move as many classes to the RAII system.

806 Diff Diff IonutCava picture IonutCava Sun 08 Jan, 2017 22:00:48 +0000

[IonutCava]
- Finish implementing per-fragment velocity computation using a compute shader
— Further tuning still needed
- Add VS2017 build targets

793 Diff Diff IonutCava picture IonutCava Sat 19 Nov, 2016 19:02:19 +0000

[IonutCava]
- Improve attachment count for RTAttachmentPool
- Improve shader compilation error message system
- First part of adding RenderDoc integration (add render doc files to the “RenderDoc” folder

792 IonutCava picture IonutCava Fri 18 Nov, 2016 16:08:45 +0000

[IonutCava]
- Allow RenderTarget attachments to keep the previous frame’s rendering result automatically. Specify if history should be saved via a bool flag on addition to the RenderTarget.