adding descriptor writes for storage buffers
This commit is contained in:
29
src/soft/device/ComputeRoutines.zig
git.filemode.normal_file
29
src/soft/device/ComputeRoutines.zig
git.filemode.normal_file
@@ -0,0 +1,29 @@
|
||||
const std = @import("std");
|
||||
const vk = @import("vulkan");
|
||||
const base = @import("base");
|
||||
const spv = @import("spv");
|
||||
|
||||
const SoftDevice = @import("../SoftDevice.zig");
|
||||
const SoftPipeline = @import("../SoftPipeline.zig");
|
||||
|
||||
const VkError = base.VkError;
|
||||
|
||||
const Self = @This();
|
||||
|
||||
device: *SoftDevice,
|
||||
pipeline: ?*SoftPipeline,
|
||||
|
||||
pub fn init(device: *SoftDevice) Self {
|
||||
return .{
|
||||
.device = device,
|
||||
.pipeline = null,
|
||||
};
|
||||
}
|
||||
|
||||
pub fn destroy(self: *Self) void {
|
||||
_ = self;
|
||||
}
|
||||
|
||||
pub fn bindPipeline(self: *Self, pipeline: *SoftPipeline) void {
|
||||
self.pipeline = pipeline;
|
||||
}
|
||||
Reference in New Issue
Block a user