Letterbox, maintain render-resolution's aspect ratio
This commit is contained in:
@@ -4,7 +4,7 @@ import "core:mem"
|
||||
import "core:log"
|
||||
import "core:fmt"
|
||||
|
||||
PIPELINE_MAX_PASSES :: 8
|
||||
PIPELINE_MAX_PASSES :: 16
|
||||
|
||||
Pipeline :: struct {
|
||||
passes: [PIPELINE_MAX_PASSES]^Pass,
|
||||
@@ -40,10 +40,11 @@ add_pass_to_pipeline :: proc(renderer: ^Renderer, pass: ^Pass) -> bool {
|
||||
|
||||
pipeline := &renderer.pipeline
|
||||
|
||||
if pipeline.amount_of_passes == PIPELINE_MAX_PASSES {
|
||||
log.warnf("Failed to add scene-pass '%v' to renderer's pipeline; hit max capacity (%v).", pass.name, PIPELINE_MAX_PASSES)
|
||||
return false
|
||||
}
|
||||
assert(pipeline.amount_of_passes < PIPELINE_MAX_PASSES)
|
||||
// if pipeline.amount_of_passes == PIPELINE_MAX_PASSES {
|
||||
// log.warnf("Failed to add scene-pass '%v' to renderer's pipeline; hit max capacity (%v).", pass.name, PIPELINE_MAX_PASSES)
|
||||
// return false
|
||||
// }
|
||||
|
||||
pipeline.passes[pipeline.amount_of_passes] = pass
|
||||
pipeline.amount_of_passes += 1
|
||||
|
||||
Reference in New Issue
Block a user