chore: dead code & stale comments

pull/10994/head
Nate Smyth 2026-02-22 22:33:57 -05:00
parent c99af5e25b
commit 8784006684
5 changed files with 3 additions and 11 deletions

View File

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

View File

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

View File

@ -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 {

View File

@ -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.

View File

@ -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,