chore: dead code & stale comments
parent
c99af5e25b
commit
8784006684
|
|
@ -275,7 +275,6 @@ pub inline fn bufferOptions(self: Metal) bufferpkg.Options {
|
|||
};
|
||||
}
|
||||
|
||||
pub const instanceBufferOptions = bufferOptions;
|
||||
pub const uniformBufferOptions = bufferOptions;
|
||||
pub const fgBufferOptions = bufferOptions;
|
||||
pub const bgBufferOptions = bufferOptions;
|
||||
|
|
|
|||
|
|
@ -344,7 +344,6 @@ pub inline fn bufferOptions(self: OpenGL) bufferpkg.Options {
|
|||
};
|
||||
}
|
||||
|
||||
pub const instanceBufferOptions = bufferOptions;
|
||||
pub const uniformBufferOptions = bufferOptions;
|
||||
pub const fgBufferOptions = bufferOptions;
|
||||
pub const bgBufferOptions = bufferOptions;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ pub const Options = struct {
|
|||
/// Whether to enable blending.
|
||||
blending_enabled: bool = true,
|
||||
|
||||
/// Optional texture buffer binding for `buffers[1]`.
|
||||
/// Texture buffer binding for `buffers[1]`.
|
||||
buffer_texture: ?BufferTexture = null,
|
||||
|
||||
pub const BufferTexture = struct {
|
||||
|
|
|
|||
|
|
@ -104,13 +104,7 @@ pub fn step(self: *Self, s: Step) void {
|
|||
if (s.pipeline.buffer_texture) |tbo| {
|
||||
gl.Texture.active(tbo.unit) catch return;
|
||||
const tbind = tbo.texture.bind(.Buffer) catch return;
|
||||
|
||||
if (s.buffers.len > 1 and s.buffers[1] != null) {
|
||||
tbind.buffer(tbo.internal_format, s.buffers[1].?.id) catch return;
|
||||
} else {
|
||||
// Detach to avoid stale bindings from prior draws.
|
||||
tbind.buffer(tbo.internal_format, 0) catch return;
|
||||
}
|
||||
tbind.buffer(tbo.internal_format, s.buffers[1].?.id) catch return;
|
||||
}
|
||||
|
||||
// Bind relevant samplers.
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ const PipelineCollection = t: {
|
|||
} });
|
||||
};
|
||||
|
||||
/// This contains the state for the shaders used by the Metal renderer.
|
||||
/// This contains the state for the shaders used by the OpenGL renderer.
|
||||
pub const Shaders = struct {
|
||||
/// Collection of available render pipelines.
|
||||
pipelines: PipelineCollection,
|
||||
|
|
|
|||
Loading…
Reference in New Issue