diff options
author | Iago Toral Quiroga <[email protected]> | 2014-06-20 10:26:29 +0200 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2014-06-30 08:08:50 +0200 |
commit | 8639effefeb8c06beedbfcc294694b6bb72db882 (patch) | |
tree | e27e6f1b77883bcfbf322fff2f4cdab22a7658bc /src/glsl/ir_rvalue_visitor.h | |
parent | 9650293b51b23b86f4fcf6875e1801555fa235d0 (diff) |
glsl: Modify ir_emit_vertex to have a stream.
This will be necessary to implement EmitStreamVertex().
EmitVertex() will produce an ir_emit_vertex with the default stream 0.
Reviewed-by: Chris Forbes <[email protected]>
Diffstat (limited to 'src/glsl/ir_rvalue_visitor.h')
-rw-r--r-- | src/glsl/ir_rvalue_visitor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/ir_rvalue_visitor.h b/src/glsl/ir_rvalue_visitor.h index 2179fa5a8f7..ad1694168a0 100644 --- a/src/glsl/ir_rvalue_visitor.h +++ b/src/glsl/ir_rvalue_visitor.h @@ -41,6 +41,7 @@ public: ir_visitor_status rvalue_visit(ir_return *); ir_visitor_status rvalue_visit(ir_swizzle *); ir_visitor_status rvalue_visit(ir_texture *); + ir_visitor_status rvalue_visit(ir_emit_vertex *); virtual void handle_rvalue(ir_rvalue **rvalue) = 0; }; @@ -57,6 +58,7 @@ public: virtual ir_visitor_status visit_leave(ir_return *); virtual ir_visitor_status visit_leave(ir_swizzle *); virtual ir_visitor_status visit_leave(ir_texture *); + virtual ir_visitor_status visit_leave(ir_emit_vertex *); }; class ir_rvalue_enter_visitor : public ir_rvalue_base_visitor { @@ -71,4 +73,5 @@ public: virtual ir_visitor_status visit_enter(ir_return *); virtual ir_visitor_status visit_enter(ir_swizzle *); virtual ir_visitor_status visit_enter(ir_texture *); + virtual ir_visitor_status visit_enter(ir_emit_vertex *); }; |