7
expr.cpp
7
expr.cpp
@@ -6415,9 +6415,10 @@ lUniformValueToVarying(FunctionEmitContext *ctx, llvm::Value *value,
|
|||||||
return retValue;
|
return retValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Otherwise we must have a uniform AtomicType, so smear its value
|
// Otherwise we must have a uniform atomic or pointer type, so smear
|
||||||
// across the vector lanes.
|
// its value across the vector lanes.
|
||||||
Assert(CastType<AtomicType>(type) != NULL);
|
Assert(CastType<AtomicType>(type) != NULL ||
|
||||||
|
CastType<PointerType>(type) != NULL);
|
||||||
return ctx->SmearUniform(value);
|
return ctx->SmearUniform(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user