Lines Matching defs:variable

728             // crashes. Making it take a float* and storing the argument in a temporary variable,
1203 // ID of temporary variable that we will use to hold this argument, or 0 if it is being
1217 // to use a temp variable.
1849 const Variable& var = *expr.as<VariableReference>().variable();
2021 const Variable& var = *expr.as<VariableReference>().variable();
2079 // expr isn't actually an lvalue, create a placeholder variable for it. This case
2095 const Variable* variable = ref.variable();
2096 if (variable->modifiers().fLayout.fBuiltin == DEVICE_FRAGCOORDS_BUILTIN) {
2098 // DEVICE_FRAGCOORDS_BUILTIN. This is a fake variable that means we need to directly access
2103 if (variable->modifiers().fLayout.fBuiltin == DEVICE_CLOCKWISE_BUILTIN) {
2105 // DEVICE_CLOCKWISE_BUILTIN. This is a fake variable that means we need to directly
2112 if (variable->modifiers().fLayout.fBuiltin == SK_FRAGCOORD_BUILTIN) {
2119 // terms of __device_FragCoords, which is a fake variable that means "access the
2148 if (variable->modifiers().fLayout.fBuiltin == SK_CLOCKWISE_BUILTIN) {
2154 // terms of __device_Clockwise, which is a fake variable that means "access the
2779 // Adreno. Switched to storing the result in a temp variable as glslang does.
3014 MemoryLayout memoryLayout = this->memoryLayoutForVariable(intf.variable());
3016 const Variable& intfVar = intf.variable();
3022 SpvStorageClass_ storageClass = get_storage_class(intf.variable(), SpvStorageClassFunction);
3026 // entirely new block when the variable is referenced. And we can't modify the existing
3445 // Create a global variable to contain this struct.
3455 // Create an interface block object for this global variable.
3468 // Flip variable hasn't been written yet. This means we don't have an existing
3562 const Modifiers& modifiers = intf.variable().modifiers();
3564 modifiers.fLayout.fBuiltin == -1 && !this->isDead(intf.variable())) {
3569 // Emit global variable declarations.