rm push/pop
This commit is contained in:
20
fx_graph.cm
20
fx_graph.cm
@@ -67,7 +67,7 @@ fx_graph.add_node = function(type, params) {
|
||||
params: local_params,
|
||||
output: {node_id: this.next_id - 1, slot: 'output'}
|
||||
}
|
||||
push(this.nodes, node)
|
||||
this.nodes[] = node
|
||||
return node
|
||||
}
|
||||
|
||||
@@ -203,14 +203,14 @@ NODE_EXECUTORS.composite = function(params, backend) {
|
||||
|
||||
// Emit composite_textures command (handled outside render pass)
|
||||
var commands = []
|
||||
push(commands, {
|
||||
commands[] = {
|
||||
cmd: 'composite_textures',
|
||||
base: base.target,
|
||||
overlay: overlay.target,
|
||||
output: target,
|
||||
mode: mode,
|
||||
opacity: opacity
|
||||
})
|
||||
}
|
||||
|
||||
return {target: target, commands: commands}
|
||||
}
|
||||
@@ -233,14 +233,14 @@ NODE_EXECUTORS.mask = function(params, backend) {
|
||||
|
||||
// Emit apply_mask command (handled via shader pass outside render pass)
|
||||
var commands = []
|
||||
push(commands, {
|
||||
commands[] = {
|
||||
cmd: 'apply_mask',
|
||||
content_texture: content.target,
|
||||
mask_texture: mask.target,
|
||||
output: target,
|
||||
mode: mode,
|
||||
invert: invert
|
||||
})
|
||||
}
|
||||
|
||||
return {target: target, commands: commands}
|
||||
}
|
||||
@@ -307,13 +307,13 @@ NODE_EXECUTORS.blit = function(params, backend) {
|
||||
}
|
||||
|
||||
var commands = []
|
||||
push(commands, {
|
||||
commands[] = {
|
||||
cmd: 'blit',
|
||||
texture: src_target,
|
||||
target: target,
|
||||
dst_rect: dst_rect,
|
||||
filter: filter
|
||||
})
|
||||
}
|
||||
|
||||
return {target: target, commands: commands}
|
||||
}
|
||||
@@ -323,7 +323,7 @@ NODE_EXECUTORS.present = function(params, backend) {
|
||||
var input = params.input
|
||||
|
||||
var commands = []
|
||||
push(commands, {cmd: 'present'})
|
||||
commands[] = {cmd: 'present'}
|
||||
|
||||
return {commands: commands}
|
||||
}
|
||||
@@ -354,13 +354,13 @@ NODE_EXECUTORS.shader_pass = function(params, backend) {
|
||||
}
|
||||
|
||||
var commands = []
|
||||
push(commands, {
|
||||
commands[] = {
|
||||
cmd: 'shader_pass',
|
||||
shader: shader,
|
||||
input: src,
|
||||
output: target,
|
||||
uniforms: uniforms
|
||||
})
|
||||
}
|
||||
|
||||
return {target: target, commands: commands}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user