14#if !__has_feature(objc_arc)
15#error This file must be compiled with Arc. Use -fobjc-arc flag
26 for (
const auto& uniformInfo : uniforms.
items()) {
29 uniformInfo.fVariable.getArrayCount() > 0);
31 uniform.fArrayCount = uniformInfo.fVariable.getArrayCount();
33 uniform.
fOffset = uniformInfo.fUBOffset;
34 uniform.
fType = uniformInfo.fVariable.getType();
43 const int32_t v[])
const {
47 SkASSERT(arrayCount <= uni.fArrayCount ||
56 const float v[])
const {
60 SkASSERT(arrayCount <= uni.fArrayCount ||
69 const int32_t v[])
const {
73 SkASSERT(arrayCount <= uni.fArrayCount ||
82 const float v[])
const {
86 SkASSERT(arrayCount <= uni.fArrayCount ||
99 const float m[])
const {
103 SkASSERT(arrayCount <= uni.fArrayCount ||
115 if (@available(macOS 10.11, iOS 8.3, tvOS 9.0, *)) {
116 if (fUniformSize <= gpu->caps()->maxPushConstantsSize()) {
SkDEBUGCODE(SK_SPI) SkThreadID SkGetThreadID()
GrRingBuffer * uniformsRingBuffer() override
void set2iv(UniformHandle, int arrayCount, const int32_t v[]) const override
void setMatrix2f(UniformHandle, const float matrix[]) const override
void set1iv(UniformHandle, int arrayCount, const int32_t v[]) const override
void set2fv(UniformHandle, int arrayCount, const float v[]) const override
void setMatrix2fv(UniformHandle, int arrayCount, const float matrices[]) const override
GrMtlPipelineStateDataManager(const UniformInfoArray &, uint32_t uniformSize)
void set1fv(UniformHandle, int arrayCount, const float v[]) const override
void uploadAndBindUniformBuffers(GrMtlGpu *gpu, GrMtlRenderCommandEncoder *renderCmdEncoder) const
void setFragmentBuffer(id< MTLBuffer > buffer, NSUInteger offset, NSUInteger index)
void setFragmentBytes(const void *bytes, NSUInteger length, NSUInteger index) SK_API_AVAILABLE(macos(10.11)
void setVertexBytes(const void *bytes, NSUInteger length, NSUInteger index) SK_API_AVAILABLE(macos(10.11)
void setVertexBuffer(id< MTLBuffer > buffer, NSUInteger offset, NSUInteger index)
Slice suballocate(size_t size)
unsigned useCenter Optional< SkMatrix > matrix
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer