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
/*
Copyright (c) 2018 DIVIDE-Studio
Copyright (c) 2009 Ionut Cava

This file is part of DIVIDE Framework.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software
and associated documentation files (the "Software"), to deal in the Software
without restriction,
including without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
IN CONNECTION WITH THE SOFTWARE
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

*/

#ifndef _GENERIC_DRAW_COMMAND_INL_
#define _GENERIC_DRAW_COMMAND_INL_

namespace Divide {

inline U32  GenericDrawCommand::renderMask()                              const { return _renderOptions; }

inline void GenericDrawCommand::LoD(U8 lod)                                     { _lodIndex = lod; }
inline void GenericDrawCommand::drawCount(U16 count)                            { _drawCount = count; }
inline void GenericDrawCommand::drawToBuffer(U8 index)                          { _drawToBuffer = index; }
inline void GenericDrawCommand::commandOffset(U32 offset)                       { _commandOffset = offset; }
inline void GenericDrawCommand::patchVertexCount(U32 vertexCount)               { _patchVertexCount = vertexCount; }
inline void GenericDrawCommand::primitiveType(PrimitiveType type)               { _type = type; }
inline void GenericDrawCommand::sourceBuffer(VertexDataInterface* sourceBuffer) { _sourceBuffer = sourceBuffer; }

inline U8 GenericDrawCommand::LoD()                            const { return _lodIndex; }
inline U16 GenericDrawCommand::drawCount()                     const { return _drawCount; }
inline U8  GenericDrawCommand::drawToBuffer()                  const { return _drawToBuffer; }
inline U32 GenericDrawCommand::commandOffset()                 const { return _commandOffset; }
inline U32 GenericDrawCommand::patchVertexCount()              const { return _patchVertexCount; }
inline IndirectDrawCommand& GenericDrawCommand::cmd()                { return _cmd; }
inline PrimitiveType GenericDrawCommand::primitiveType()       const { return _type; }
inline VertexDataInterface* GenericDrawCommand::sourceBuffer() const { return _sourceBuffer; }
inline const IndirectDrawCommand& GenericDrawCommand::cmd()    const { return _cmd; }

}; //namespace Divide
#endif //_GENERIC_DRAW_COMMAND_INL

Commits for Divide-Framework/trunk/Source Code/Platform/Video/Headers/GenericDrawCommand.inl

Diff revisions: vs.
Revision Author Commited Message
1029 Diff Diff IonutCava picture IonutCava Tue 30 Jan, 2018 17:28:39 +0000

[Ionut]
- Update copyright notices

932 Diff Diff IonutCava picture IonutCava Mon 14 Aug, 2017 16:17:59 +0000

[Ionut]
- Transition every GPU call to the new GFX::CommandBuffer system.
- Part 1/3: Infrastructure. Does not compile yet; (ToDo: part 2/3: transition commands to new infrastructure. part 3/3: debug and optimize)

Currently supported commands:
BEGIN_RENDER_PASS
END_RENDER_PASS
BEGIN_RENDER_SUB_PASS
END_RENDER_SUB_PASS
SET_VIEWPORT
SET_SCISSOR
BIND_PIPELINE
BIND_DESCRIPTOR_SETS
SEND_PUSH_CONSTANTS
DRAW_COMMANDS
DRAW_TEXT
DISPATCH_COMPUTE

930 Diff Diff IonutCava picture IonutCava Sun 13 Aug, 2017 20:33:31 +0000

[Ionut]
- Fix a bug with Push Constant to Uniform conversion
- Add more push constant types
- Fix RENDER_INDIRECT param for draw commands
- Cleanup Sky, Terrain and Vegetation a bit

929 IonutCava picture IonutCava Sat 12 Aug, 2017 17:34:44 +0000

[Ionut]
- More work on finishing up new PushConstant / Command buffer rendering system:
— Everything compiles and runs but with graphical and performance issues