History

Buffer usage flags

Brad Davis committed 8 years ago

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

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

Unified · Split

libraries/render/src/render/DrawStatus.cpp+2−2
@@ -205,7 +205,7 @@ void DrawStatus::run(const RenderContextPointer& renderContext, const Input& inI · 204 unmodified lines
205 }205 }
206 206
207 if (!_boundsBuffer) {207 if (!_boundsBuffer) {
208 _boundsBuffer = std::make_shared<gpu::Buffer>(sizeof(render::ItemBound));208 _boundsBuffer = std::make_shared<gpu::Buffer>(gpu::Buffer::ResourceBuffer, sizeof(render::ItemBound));
209 }209 }
210 210
211 // Alright, something to render let's do it211 // Alright, something to render let's do it
@@ -231,7 +231,7 @@ void DrawStatus::run(const RenderContextPointer& renderContext, const Input& inI · 19 unmodified lines
231 231
232 if (_showNetwork || _showFade) {232 if (_showNetwork || _showFade) {
233 if (!_instanceBuffer) {233 if (!_instanceBuffer) {
234 _instanceBuffer = std::make_shared<gpu::Buffer>();234 _instanceBuffer = std::make_shared<gpu::Buffer>(gpu::Buffer::VertexBuffer);
235 }235 }
236 236
237 struct InstanceData {237 struct InstanceData {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t