Lines Matching refs:SampleUsage
20 class SampleUsage {
35 // Make a SampleUsage that corresponds to no sampling of the child at all
36 SampleUsage() = default;
38 SampleUsage(Kind kind, bool hasPerspective) : fKind(kind), fHasPerspective(hasPerspective) {
45 static SampleUsage UniformMatrix(bool hasPerspective) {
46 return SampleUsage(Kind::kUniformMatrix, hasPerspective);
49 static SampleUsage Explicit() {
50 return SampleUsage(Kind::kExplicit, false);
53 static SampleUsage PassThrough() {
54 return SampleUsage(Kind::kPassThrough, false);
57 static SampleUsage FragCoord() { return SampleUsage(Kind::kFragCoord, false); }
59 bool operator==(const SampleUsage& that) const {
63 bool operator!=(const SampleUsage& that) const { return !(*this == that); }
68 SampleUsage merge(const SampleUsage& other);