Home
last modified time | relevance | path

Searched refs:arrayCount (Results 1 – 25 of 31) sorted by relevance

12

/third_party/skia/src/gpu/vk/
DGrVkPipelineStateDataManager.cpp67 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 …]
DGrVkPipelineStateDataManager.h36 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;
DGrVkUniformHandler.cpp166 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()
DGrVkUniformHandler.h110 int arrayCount,
/third_party/skia/src/gpu/
DGrUniformDataManager.cpp89 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 …]
DGrUniformDataManager.h27 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 …]
DGrShaderVar.h40 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()
DGrSPIRVUniformHandler.cpp164 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()
DGrSPIRVUniformHandler.h62 int arrayCount,
/third_party/skia/src/gpu/gl/
DGrGLProgramDataManager.cpp55 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 …]
DGrGLProgramDataManager.h52 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 …]
DGrGLVertexArray.h26 explicit GrGLAttribArrayState(int arrayCount = 0) {
27 this->resize(arrayCount);
DGrGLUniformHandler.cpp33 int arrayCount, in internalAddUniformArray() argument
55 arrayCount}; in internalAddUniformArray()
DGrGLUniformHandler.h52 int arrayCount,
/third_party/skia/src/gpu/mtl/
DGrMtlPipelineStateDataManager.mm42 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 …]
DGrMtlPipelineStateDataManager.h28 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;
DGrMtlUniformHandler.mm160 int arrayCount) {
171 if (arrayCount) {
172 *currentOffset = uniformOffset + grsltype_to_mtl_size(type) * arrayCount;
185 int arrayCount,
203 type, arrayCount);
213 arrayCount,
DGrMtlUniformHandler.h70 int arrayCount,
/third_party/skia/src/gpu/glsl/
DGrGLSLProgramDataManager.h32 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 …]
DGrGLSLUniformHandler.h66 int arrayCount,
70 return this->internalAddUniformArray(owner, visibility, type, name, mangle, arrayCount,
126 int arrayCount,
/third_party/skia/src/gpu/effects/
DGrGaussianConvolutionFragmentProcessor.cpp66 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()
DGrMatrixConvolutionEffect.cpp203 int arrayCount = (kernelWidth * kernelHeight + 3) / 4; in emitCode() local
204 SkASSERT(4 * arrayCount >= kernelWidth * kernelHeight); in emitCode()
212 kHalf4_GrSLType, "Kernel", arrayCount); in emitCode()
262 int arrayCount = (kernelCount + 3) / 4; in onSetData() local
263 SkASSERT(4 * arrayCount >= kernelCount); in onSetData()
264 pdman.set4fv(fKernelUni, arrayCount, conv.fKernel.array().data()); in onSetData()
/third_party/skia/third_party/externals/dng_sdk/source/
Ddng_jpeg_image.cpp330 uint32 arrayCount = tileCount + (fJPEGTables.Get () ? 1 : 0); in FindDigest() local
332 AutoArray<dng_fingerprint> digests (arrayCount); in FindDigest()
370 for (uint32 k = 0; k < arrayCount; k++) in FindDigest()
/third_party/skia/experimental/graphite/src/
DUniformManager.cpp442 int arrayCount) { in get_ubo_aligned_offset() argument
453 if (arrayCount) { in get_ubo_aligned_offset()
454 *currentOffset = uniformOffset + sltype_to_mtl_size(type) * arrayCount; in get_ubo_aligned_offset()
/third_party/skia/src/core/
DSkScan_Hairline.cpp46 void SkScan::HairLineRgn(const SkPoint array[], int arrayCount, const SkRegion* clip, in HairLineRgn() argument
59 for (int i = 0; i < arrayCount - 1; ++i) { in HairLineRgn()

12