adding descriptor bindings
This commit is contained in:
@@ -3,6 +3,8 @@ const vk = @import("vulkan");
|
||||
const base = @import("base");
|
||||
const spv = @import("spv");
|
||||
|
||||
const PipelineState = @import("PipelineState.zig");
|
||||
|
||||
const SoftDevice = @import("../SoftDevice.zig");
|
||||
const SoftPipeline = @import("../SoftPipeline.zig");
|
||||
|
||||
@@ -11,19 +13,15 @@ const VkError = base.VkError;
|
||||
const Self = @This();
|
||||
|
||||
device: *SoftDevice,
|
||||
pipeline: ?*SoftPipeline,
|
||||
state: *PipelineState,
|
||||
|
||||
pub fn init(device: *SoftDevice) Self {
|
||||
pub fn init(device: *SoftDevice, state: *PipelineState) Self {
|
||||
return .{
|
||||
.device = device,
|
||||
.pipeline = null,
|
||||
.state = state,
|
||||
};
|
||||
}
|
||||
|
||||
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