/third_party/skia/src/gpu/vk/ |
D | GrVkPipelineStateDataManager.cpp | 67 int arrayCount, in set1iv() argument 72 SkASSERT(arrayCount > 0); in set1iv() 73 SkASSERT(arrayCount <= uni.fArrayCount || in set1iv() 74 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); in set1iv() 78 memcpy(buffer, v, arrayCount * sizeof(int32_t)); in set1iv() 80 return this->INHERITED::set1iv(u, arrayCount, v); in set1iv() 85 int arrayCount, in set1fv() argument 90 SkASSERT(arrayCount > 0); in set1fv() 91 SkASSERT(arrayCount <= uni.fArrayCount || in set1fv() 92 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); in set1fv() [all …]
|
D | GrVkPipelineStateDataManager.h | 36 void set1iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 37 void set1fv(UniformHandle, int arrayCount, const float v[]) const override; 38 void set2iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 39 void set2fv(UniformHandle, int arrayCount, const float v[]) const override; 40 void setMatrix2fv(UniformHandle, int arrayCount, const float matrices[]) const override;
|
D | GrVkUniformHandler.cpp | 166 int arrayCount, in get_aligned_offset() argument 170 if (layout == GrVkUniformHandler::kStd140Layout && (arrayCount || type == kFloat2x2_GrSLType)) { in get_aligned_offset() 179 if (arrayCount) { in get_aligned_offset() 183 *currentOffset = uniformOffset + elementSize * arrayCount; in get_aligned_offset() 205 int arrayCount, in internalAddUniformArray() argument 226 arrayCount}; in internalAddUniformArray() 235 arrayCount, in internalAddUniformArray()
|
/third_party/flutter/skia/src/gpu/vk/ |
D | GrVkPipelineStateDataManager.cpp | 50 int arrayCount, in set1iv() argument 54 SkASSERT(arrayCount > 0); in set1iv() 55 SkASSERT(arrayCount <= uni.fArrayCount || in set1iv() 56 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); in set1iv() 60 for (int i = 0; i < arrayCount; ++i) { in set1iv() 77 int arrayCount, in set1fv() argument 81 SkASSERT(arrayCount > 0); in set1fv() 82 SkASSERT(arrayCount <= uni.fArrayCount || in set1fv() 83 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); in set1fv() 87 for (int i = 0; i < arrayCount; ++i) { in set1fv() [all …]
|
D | GrVkPipelineStateDataManager.h | 28 void set1iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 30 void set1fv(UniformHandle, int arrayCount, const float v[]) const override; 32 void set2iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 34 void set2fv(UniformHandle, int arrayCount, const float v[]) const override; 36 void set3iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 38 void set3fv(UniformHandle, int arrayCount, const float v[]) const override; 40 void set4iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 42 void set4fv(UniformHandle, int arrayCount, const float v[]) const override; 48 void setMatrix2fv(UniformHandle, int arrayCount, const float matrices[]) const override; 49 void setMatrix3fv(UniformHandle, int arrayCount, const float matrices[]) const override; [all …]
|
D | GrVkUniformHandler.cpp | 184 int arrayCount) { in get_ubo_aligned_offset() argument 187 if (arrayCount || type == kFloat2x2_GrSLType) { in get_ubo_aligned_offset() 196 if (arrayCount) { in get_ubo_aligned_offset() 199 *currentOffset = *uniformOffset + elementSize * arrayCount; in get_ubo_aligned_offset() 220 int arrayCount, in internalAddUniformArray() argument 238 uni.fVariable.setArrayCount(arrayCount); in internalAddUniformArray() 244 get_ubo_aligned_offset(&uni.fUBOffset, &fCurrentUBOOffset, type, arrayCount); in internalAddUniformArray()
|
/third_party/skia/src/gpu/ |
D | GrUniformDataManager.cpp | 89 void GrUniformDataManager::setv(UniformHandle u, int arrayCount, const void* v) const { in setv() argument 92 SkASSERT(arrayCount > 0); in setv() 93 SkASSERT(arrayCount <= uni.fArrayCount || in setv() 94 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); in setv() 98 this->copyUniforms(buffer, v, arrayCount * 4, uni.fType); in setv() 100 for (int i = 0; i < arrayCount; ++i) { in setv() 113 int arrayCount, in set1iv() argument 115 this->setv<1, kInt_GrSLType, kShort_GrSLType>(u, arrayCount, v); in set1iv() 123 int arrayCount, in set1fv() argument 125 this->setv<1, kFloat_GrSLType, kHalf_GrSLType>(u, arrayCount, v); in set1fv() [all …]
|
D | GrUniformDataManager.h | 27 void set1iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 29 void set1fv(UniformHandle, int arrayCount, const float v[]) const override; 31 void set2iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 33 void set2fv(UniformHandle, int arrayCount, const float v[]) const override; 35 void set3iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 37 void set3fv(UniformHandle, int arrayCount, const float v[]) const override; 39 void set4iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 41 void set4fv(UniformHandle, int arrayCount, const float v[]) const override; 47 void setMatrix2fv(UniformHandle, int arrayCount, const float matrices[]) const override; 48 void setMatrix3fv(UniformHandle, int arrayCount, const float matrices[]) const override; [all …]
|
D | GrShaderVar.h | 40 GrShaderVar(SkString name, GrSLType type, int arrayCount = kNonArray) 43 , fCount(arrayCount) in fType() 45 GrShaderVar(const char* name, GrSLType type, int arrayCount = kNonArray) 46 : GrShaderVar(SkString(name), type, arrayCount) {} in GrShaderVar() argument 56 GrShaderVar(SkString name, GrSLType type, TypeModifier typeModifier, int arrayCount) in GrShaderVar() argument 59 , fCount(arrayCount) in GrShaderVar() 62 GrShaderVar(SkString name, GrSLType type, TypeModifier typeModifier, int arrayCount, in GrShaderVar() argument 66 , fCount(arrayCount) in GrShaderVar()
|
D | GrSPIRVUniformHandler.cpp | 164 uint32_t get_ubo_offset(uint32_t* currentOffset, GrSLType type, int arrayCount) { in get_ubo_offset() argument 167 if (arrayCount || type == kFloat2x2_GrSLType) { in get_ubo_offset() 176 if (arrayCount) { in get_ubo_offset() 179 *currentOffset = uniformOffset + elementSize * arrayCount; in get_ubo_offset() 194 int arrayCount, in internalAddUniformArray() argument 202 int offset = get_ubo_offset(&fCurrentUBOOffset, type, arrayCount); in internalAddUniformArray() 210 arrayCount, in internalAddUniformArray()
|
/third_party/skia/src/gpu/gl/ |
D | GrGLProgramDataManager.cpp | 55 int arrayCount, in set1iv() argument 59 SkASSERT(arrayCount > 0); in set1iv() 60 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount); in set1iv() 62 GR_GL_CALL(fGpu->glInterface(), Uniform1iv(uni.fLocation, arrayCount, v)); in set1iv() 76 int arrayCount, in set1fv() argument 80 SkASSERT(arrayCount > 0); in set1fv() 81 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount); in set1fv() 87 GR_GL_CALL(fGpu->glInterface(), Uniform1fv(uni.fLocation, arrayCount, v)); in set1fv() 101 int arrayCount, in set2iv() argument 105 SkASSERT(arrayCount > 0); in set2iv() [all …]
|
D | GrGLProgramDataManager.h | 52 void set1iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 54 void set1fv(UniformHandle, int arrayCount, const float v[]) const override; 56 void set2iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 58 void set2fv(UniformHandle, int arrayCount, const float v[]) const override; 60 void set3iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 62 void set3fv(UniformHandle, int arrayCount, const float v[]) const override; 64 void set4iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 66 void set4fv(UniformHandle, int arrayCount, const float v[]) const override; 72 void setMatrix2fv(UniformHandle, int arrayCount, const float matrices[]) const override; 73 void setMatrix3fv(UniformHandle, int arrayCount, const float matrices[]) const override; [all …]
|
/third_party/flutter/skia/src/gpu/gl/ |
D | GrGLProgramDataManager.cpp | 74 int arrayCount, in set1iv() argument 78 SkASSERT(arrayCount > 0); in set1iv() 79 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount); in set1iv() 81 GR_GL_CALL(fGpu->glInterface(), Uniform1iv(uni.fLocation, arrayCount, v)); in set1iv() 95 int arrayCount, in set1fv() argument 99 SkASSERT(arrayCount > 0); in set1fv() 100 ASSERT_ARRAY_UPLOAD_IN_BOUNDS(uni, arrayCount); in set1fv() 106 GR_GL_CALL(fGpu->glInterface(), Uniform1fv(uni.fLocation, arrayCount, v)); in set1fv() 120 int arrayCount, in set2iv() argument 124 SkASSERT(arrayCount > 0); in set2iv() [all …]
|
D | GrGLProgramDataManager.h | 54 void set1iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 56 void set1fv(UniformHandle, int arrayCount, const float v[]) const override; 58 void set2iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 60 void set2fv(UniformHandle, int arrayCount, const float v[]) const override; 62 void set3iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 64 void set3fv(UniformHandle, int arrayCount, const float v[]) const override; 66 void set4iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 68 void set4fv(UniformHandle, int arrayCount, const float v[]) const override; 74 void setMatrix2fv(UniformHandle, int arrayCount, const float matrices[]) const override; 75 void setMatrix3fv(UniformHandle, int arrayCount, const float matrices[]) const override; [all …]
|
/third_party/flutter/skia/src/gpu/mtl/ |
D | GrMtlPipelineStateDataManager.mm | 53 int arrayCount, 57 SkASSERT(arrayCount > 0); 58 SkASSERT(arrayCount <= uni.fArrayCount || 59 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); 63 for (int i = 0; i < arrayCount; ++i) { 80 int arrayCount, 84 SkASSERT(arrayCount > 0); 85 SkASSERT(arrayCount <= uni.fArrayCount || 86 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); 90 memcpy(buffer, v, arrayCount * sizeof(float)); [all …]
|
D | GrMtlPipelineStateDataManager.h | 28 void set1iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 30 void set1fv(UniformHandle, int arrayCount, const float v[]) const override; 32 void set2iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 34 void set2fv(UniformHandle, int arrayCount, const float v[]) const override; 36 void set3iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 38 void set3fv(UniformHandle, int arrayCount, const float v[]) const override; 40 void set4iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 42 void set4fv(UniformHandle, int arrayCount, const float v[]) const override; 48 void setMatrix2fv(UniformHandle, int arrayCount, const float matrices[]) const override; 49 void setMatrix3fv(UniformHandle, int arrayCount, const float matrices[]) const override; [all …]
|
/third_party/skia/src/gpu/mtl/ |
D | GrMtlPipelineStateDataManager.mm | 42 int arrayCount, 46 SkASSERT(arrayCount > 0); 47 SkASSERT(arrayCount <= uni.fArrayCount || 48 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); 51 this->copyUniforms(buffer, v, arrayCount, uni.fType); 55 int arrayCount, 59 SkASSERT(arrayCount > 0); 60 SkASSERT(arrayCount <= uni.fArrayCount || 61 (1 == arrayCount && GrShaderVar::kNonArray == uni.fArrayCount)); 64 this->copyUniforms(buffer, v, arrayCount, uni.fType); [all …]
|
D | GrMtlPipelineStateDataManager.h | 28 void set1iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 29 void set1fv(UniformHandle, int arrayCount, const float v[]) const override; 30 void set2iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 31 void set2fv(UniformHandle, int arrayCount, const float v[]) const override; 35 void setMatrix2fv(UniformHandle, int arrayCount, const float matrices[]) const override;
|
/third_party/skia/src/gpu/glsl/ |
D | GrGLSLProgramDataManager.h | 32 virtual void set1iv(UniformHandle, int arrayCount, const int v[]) const = 0; 34 virtual void set1fv(UniformHandle, int arrayCount, const float v[]) const = 0; 36 virtual void set2iv(UniformHandle, int arrayCount, const int v[]) const = 0; 38 virtual void set2fv(UniformHandle, int arrayCount, const float v[]) const = 0; 40 virtual void set3iv(UniformHandle, int arrayCount, const int v[]) const = 0; 42 virtual void set3fv(UniformHandle, int arrayCount, const float v[]) const = 0; 44 virtual void set4iv(UniformHandle, int arrayCount, const int v[]) const = 0; 46 virtual void set4fv(UniformHandle, int arrayCount, const float v[]) const = 0; 52 virtual void setMatrix2fv(UniformHandle, int arrayCount, const float matrices[]) const = 0; 53 virtual void setMatrix3fv(UniformHandle, int arrayCount, const float matrices[]) const = 0; [all …]
|
/third_party/flutter/skia/src/gpu/dawn/ |
D | GrDawnProgramDataManager.h | 29 void set1iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 31 void set2iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 33 void set3iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 35 void set4iv(UniformHandle, int arrayCount, const int32_t v[]) const override; 38 void set1fv(UniformHandle, int arrayCount, const float v[]) const override; 40 void set2fv(UniformHandle, int arrayCount, const float v[]) const override; 42 void set3fv(UniformHandle, int arrayCount, const float v[]) const override; 44 void set4fv(UniformHandle, int arrayCount, const float v[]) const override; 50 void setMatrix2fv(UniformHandle, int arrayCount, const float matrices[]) const override; 51 void setMatrix3fv(UniformHandle, int arrayCount, const float matrices[]) const override; [all …]
|
D | GrDawnProgramDataManager.cpp | 63 void GrDawnProgramDataManager::set1iv(UniformHandle u, int arrayCount, const int32_t v[]) const { in set1iv() argument 66 for (int i = 0; i < arrayCount; ++i) { in set1iv() 80 void GrDawnProgramDataManager::set2iv(UniformHandle u, int arrayCount, const int32_t v[]) const { in set2iv() argument 83 for (int i = 0; i < arrayCount; ++i) { in set2iv() 97 void GrDawnProgramDataManager::set3iv(UniformHandle u, int arrayCount, const int32_t v[]) const { in set3iv() argument 100 for (int i = 0; i < arrayCount; ++i) { in set3iv() 118 void GrDawnProgramDataManager::set4iv(UniformHandle u, int arrayCount, const int32_t v[]) const { in set4iv() argument 121 for (int i = 0; i < arrayCount; ++i) { in set4iv() 134 void GrDawnProgramDataManager::set1fv(UniformHandle u, int arrayCount, const float v[]) const { in set1fv() argument 137 for (int i = 0; i < arrayCount; ++i) { in set1fv() [all …]
|
D | GrDawnUniformHandler.cpp | 180 int arrayCount) { in get_ubo_offset() argument 183 if (arrayCount || type == kFloat2x2_GrSLType) { in get_ubo_offset() 192 if (arrayCount) { in get_ubo_offset() 195 *currentOffset = uniformOffset + elementSize * arrayCount; in get_ubo_offset() 209 int arrayCount, in internalAddUniformArray() argument 214 info.fUBOOffset = get_ubo_offset(&fCurrentFragmentUBOOffset, type, arrayCount); in internalAddUniformArray() 216 info.fUBOOffset = get_ubo_offset(&fCurrentGeometryUBOOffset, type, arrayCount); in internalAddUniformArray() 226 var.setArrayCount(arrayCount); in internalAddUniformArray()
|
/third_party/flutter/skia/src/gpu/glsl/ |
D | GrGLSLProgramDataManager.h | 32 virtual void set1iv(UniformHandle, int arrayCount, const int v[]) const = 0; 34 virtual void set1fv(UniformHandle, int arrayCount, const float v[]) const = 0; 36 virtual void set2iv(UniformHandle, int arrayCount, const int v[]) const = 0; 38 virtual void set2fv(UniformHandle, int arrayCount, const float v[]) const = 0; 40 virtual void set3iv(UniformHandle, int arrayCount, const int v[]) const = 0; 42 virtual void set3fv(UniformHandle, int arrayCount, const float v[]) const = 0; 44 virtual void set4iv(UniformHandle, int arrayCount, const int v[]) const = 0; 46 virtual void set4fv(UniformHandle, int arrayCount, const float v[]) const = 0; 52 virtual void setMatrix2fv(UniformHandle, int arrayCount, const float matrices[]) const = 0; 53 virtual void setMatrix3fv(UniformHandle, int arrayCount, const float matrices[]) const = 0; [all …]
|
/third_party/skia/src/gpu/effects/ |
D | GrGaussianConvolutionFragmentProcessor.cpp | 66 int arrayCount; in emitCode() local 69 arrayCount = (SkGpuBlurUtils::LinearKernelWidth(kMaxKernelRadius) + 3) / 4; in emitCode() 71 arrayCount = (width + 3) / 4; in emitCode() 72 SkASSERT(4 * arrayCount >= width); in emitCode() 75 GlobalVar kernel(kUniform_Modifier, Array(kHalf4_Type, arrayCount), "Kernel"); in emitCode() 80 GlobalVar offsets(kUniform_Modifier, Array(kHalf4_Type, arrayCount), "Offsets"); in emitCode() 129 int arrayCount = (width + 3)/4; in onSetData() local 130 SkDEBUGCODE(size_t arraySize = 4*arrayCount;) in onSetData() 133 pdman.set4fv(fKernelUni, arrayCount, conv.fKernel); in onSetData() 134 pdman.set4fv(fOffsetsUni, arrayCount, conv.fOffsets); in onSetData()
|
/third_party/flutter/skia/src/gpu/ |
D | GrShaderVar.h | 49 GrShaderVar(const SkString& name, GrSLType type, int arrayCount = kNonArray) 52 , fCount(arrayCount) in fType() 59 GrShaderVar(const char* name, GrSLType type, int arrayCount = kNonArray) 62 , fCount(arrayCount) in fType() 78 GrShaderVar(const char* name, GrSLType type, TypeModifier typeModifier, int arrayCount) in GrShaderVar() argument 81 , fCount(arrayCount) in GrShaderVar()
|