forked from Dynamitos/Seele
Fixing command resource binding
This commit is contained in:
1 parent
5be15b4929
commit
e97beda2bc
13 files changed
+73
-57
No files matched your search
@@ -12,7 +12,7 @@ using namespace Seele;
|
||||
using namespace Seele::Metal;
|
||||
|
||||
BufferAllocation::BufferAllocation(PGraphics graphics, const std::string& name, uint64 size, MTL::ResourceOptions options)
|
||||
: CommandBoundResource(graphics) {
|
||||
: CommandBoundResource(graphics, name) {
|
||||
buffer = graphics->getDevice()->newBuffer(size, options);
|
||||
buffer->setLabel(NS::String::string(name.c_str(), NS::ASCIIStringEncoding));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user