glsl: Fix non-immediate buffer access
and many other misc implementations
This commit is contained in:
parent
2328b0b2a8
commit
ac6135774f
12 changed files with 133 additions and 72 deletions
|
@ -160,8 +160,13 @@ void EmitCode(EmitContext& ctx, const IR::Program& program) {
|
|||
ctx.Add("return;");
|
||||
break;
|
||||
case IR::AbstractSyntaxNode::Type::Loop:
|
||||
ctx.Add("do{{");
|
||||
break;
|
||||
case IR::AbstractSyntaxNode::Type::Repeat:
|
||||
ctx.Add("}}while({});", ctx.reg_alloc.Consume(node.data.repeat.cond));
|
||||
break;
|
||||
default:
|
||||
fmt::print("{}", node.type);
|
||||
throw NotImplementedException("{}", node.type);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue