History

Buffer usage flags

Brad Davis committed 8 years ago

Commit ea485d01 parent 935a4b348 files · +281 −332Browse files

Showing the changes to libraries/render-utils/src/AnimDebugDraw.cpp (1 of 48 files). Show all

Unified · Split

libraries/render-utils/src/AnimDebugDraw.cpp+2−2
@@ -33,8 +33,8 @@ public: · 32 unmodified lines
33 AnimDebugDrawData() {33 AnimDebugDrawData() {
34 34
35 _vertexFormat = std::make_shared<gpu::Stream::Format>();35 _vertexFormat = std::make_shared<gpu::Stream::Format>();
36 _vertexBuffer = std::make_shared<gpu::Buffer>();36 _vertexBuffer = std::make_shared<gpu::Buffer>(gpu::Buffer::VertexBuffer);
37 _indexBuffer = std::make_shared<gpu::Buffer>();37 _indexBuffer = std::make_shared<gpu::Buffer>(gpu::Buffer::IndexBuffer);
38 38
39 _vertexFormat->setAttribute(gpu::Stream::POSITION, 0, gpu::Element::VEC3F_XYZ, 0);39 _vertexFormat->setAttribute(gpu::Stream::POSITION, 0, gpu::Element::VEC3F_XYZ, 0);
40 _vertexFormat->setAttribute(gpu::Stream::COLOR, 0, gpu::Element::COLOR_RGBA_32, offsetof(Vertex, rgba));40 _vertexFormat->setAttribute(gpu::Stream::COLOR, 0, gpu::Element::COLOR_RGBA_32, offsetof(Vertex, rgba));