implementing push constants
This commit is contained in:
@@ -13,9 +13,6 @@ interface: Interface,
|
||||
data: []u8,
|
||||
|
||||
pub fn create(device: *SoftDevice, allocator: std.mem.Allocator, size: vk.DeviceSize, memory_type_index: u32) VkError!*Self {
|
||||
if (size > lib.MAX_MEMORY_ALLOCATION_SIZE)
|
||||
return VkError.OutOfDeviceMemory;
|
||||
|
||||
const self = allocator.create(Self) catch return VkError.OutOfHostMemory;
|
||||
errdefer allocator.destroy(self);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user