mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
metal: add debug labels for internal buffers.
This commit is contained in:
@@ -341,6 +341,7 @@ Graphics::Graphics()
|
||||
};
|
||||
|
||||
Buffer::Settings attribsettings(BUFFERUSAGEFLAG_VERTEX, BUFFERDATAUSAGE_STATIC);
|
||||
attribsettings.debugName = "Default Vertex Attributes";
|
||||
|
||||
defaultAttributesBuffer = newBuffer(attribsettings, dataformat, &defaults, sizeof(DefaultVertexAttributes), 0);
|
||||
}
|
||||
|
||||
@@ -48,6 +48,8 @@ public:
|
||||
if (buffer == nil)
|
||||
throw love::Exception("Out of graphics memory.");
|
||||
|
||||
buffer.label = [NSString stringWithFormat:@"StreamBuffer (usage: %d, size: %ld)", usage, size];
|
||||
|
||||
data = (uint8 *) buffer.contents;
|
||||
|
||||
for (int i = 0; i < BUFFER_FRAMES; i++)
|
||||
|
||||
Reference in New Issue
Block a user