mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/shaderir: add comments
This commit is contained in:
parent
6a0eb82207
commit
724516a0e0
@ -460,6 +460,8 @@ func (p *Program) reachableUniformVariablesFromBlock(block *Block) []int {
|
||||
return is
|
||||
}
|
||||
|
||||
// FilterUniformVariables replaces uniform variables with nil when they are not used.
|
||||
// By minimizing uniform variables, more commands can be merged in the graphicscommand package.
|
||||
func (p *Program) FilterUniformVariables(uniforms [][]uint32) {
|
||||
if p.reachableUniforms == nil {
|
||||
p.reachableUniforms = make([]bool, len(p.Uniforms))
|
||||
|
Loading…
Reference in New Issue
Block a user