You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
2D: Switch to VBOs for instance data
- Add support for vertex bindings and UMA vertex buffers in D3D12. - Simplify 2D instance params and move more into per-batch data to save bandwidth Co-authored-by: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Co-authored-by: Clay John <claynjohn@gmail.com> Co-authored-by: A Thousand Ships <96648715+athousandships@users.noreply.github.com>
This commit is contained in:
@@ -221,6 +221,7 @@ class RDVertexAttribute : public RefCounted {
|
||||
RD::VertexAttribute base;
|
||||
|
||||
public:
|
||||
RD_SETGET(uint32_t, binding)
|
||||
RD_SETGET(uint32_t, location)
|
||||
RD_SETGET(uint32_t, offset)
|
||||
RD_SETGET(RD::DataFormat, format)
|
||||
@@ -229,6 +230,7 @@ public:
|
||||
|
||||
protected:
|
||||
static void _bind_methods() {
|
||||
RD_BIND(Variant::INT, RDVertexAttribute, binding);
|
||||
RD_BIND(Variant::INT, RDVertexAttribute, location);
|
||||
RD_BIND(Variant::INT, RDVertexAttribute, offset);
|
||||
RD_BIND(Variant::INT, RDVertexAttribute, format);
|
||||
|
||||
Reference in New Issue
Block a user