adding descriptor bindings
Some checks failed
Build / build (push) Successful in 1m5s
Test / build_and_test (push) Failing after 3h8m2s

This commit is contained in:
2026-02-21 03:37:08 +01:00
parent a95e57bd5e
commit d97533082d
12 changed files with 217 additions and 129 deletions

View File

@@ -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;
}