8#ifndef skgpu_graphite_ResourceTypes_DEFINED
9#define skgpu_graphite_ResourceTypes_DEFINED
223 , fFormat(
info.fFormat)
224 , fExternalFormatMostSignificantBits(
info.fFormat >> 32) {
242 return o.fDesc == fDesc && o.fFormat == fFormat &&
243 o.fExternalFormatMostSignificantBits == fExternalFormatMostSignificantBits;
250 uint32_t
desc()
const {
return fDesc; }
251 uint32_t
format()
const {
return fFormat; }
295 uint32_t fFormat = 0;
296 uint32_t fExternalFormatMostSignificantBits = 0;
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
constexpr int SkNextLog2_portable(uint32_t value)
@ kYes
Do pre-clip the geometry before applying the (perspective) matrix.
@ kNo
Don't pre-clip the geometry before applying the (perspective) matrix.
static constexpr int kSkFilterModeCount
static constexpr int kSkMipmapModeCount
static constexpr int kSkTileModeCount
static constexpr bool SkToBool(const T &x)
static constexpr const char * LayoutString(Layout layout)
SK_MAKE_BITMASK_OPS(DawnErrorType)
static constexpr int kLoadOpCount
static constexpr int kStoreOpCount
static const int kBufferTypeCount
SkSamplingOptions(SkFilterMode::kLinear))
const SkFilterMode filter
const SkMipmapMode mipmap
bool operator!=(const BindBufferInfo &o) const
bool operator==(const BindBufferInfo &o) const
uint32_t fNonFormatYcbcrConversionInfo
static constexpr int kTileModeXShift
SkTileMode tileModeX() const
bool operator==(const SamplerDesc &o) const
static constexpr int kTileModeYShift
static constexpr int kMipmapModeShift
SkSamplingOptions samplingOptions() const
static constexpr int kNumTileModeBits
static constexpr int kMaxNumConversionInfoBits
SamplerDesc(const SkSamplingOptions &samplingOptions, const SkTileMode tileModes[2], const ImmutableSamplerInfo info={})
static constexpr int kNumMipmapModeBits
static constexpr int kNumFilterModeBits
static constexpr int kImmutableSamplerInfoShift
SkSpan< const uint32_t > asSpan() const
bool operator!=(const SamplerDesc &o) const
SkTileMode tileModeY() const
static constexpr int kFilterModeShift
bool usesExternalFormat() const
uint32_t externalFormatMSBs() const
SamplerDesc(const SamplerDesc &)=default