/** * Represents all of the ways that a fragment processor is sampled by its parent.
*/ class SampleUsage { public: enumclass Kind { // Child is never sampled
kNone, // Child is only sampled at the same coordinates as the parent
kPassThrough, // Child is sampled with a matrix whose value is uniform
kUniformMatrix, // Child is sampled with sk_FragCoord.xy
kFragCoord, // Child is sampled using explicit coordinates
kExplicit,
};
// Make a SampleUsage that corresponds to no sampling of the child at all
SampleUsage() = default;
// Child is sampled with a matrix whose value is uniform. The name is fixed. static SampleUsage UniformMatrix(bool hasPerspective) { return SampleUsage(Kind::kUniformMatrix, hasPerspective);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.