glsl/ir_builder: Add enum writemask
Using this enum improves the readibility of calls to assign(), whose third argument is a writemask. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
This commit is contained in:
@@ -25,6 +25,15 @@
|
||||
|
||||
namespace ir_builder {
|
||||
|
||||
#ifndef WRITEMASK_X
|
||||
enum writemask {
|
||||
WRITEMASK_X = 0x1,
|
||||
WRITEMASK_Y = 0x2,
|
||||
WRITEMASK_Z = 0x4,
|
||||
WRITEMASK_W = 0x8,
|
||||
};
|
||||
#endif
|
||||
|
||||
/**
|
||||
* This little class exists to let the helper expression generators
|
||||
* take either an ir_rvalue * or an ir_variable * to be automatically
|
||||
|
||||
Reference in New Issue
Block a user