Home
last modified time | relevance | path

Searched refs:UniformData (Results 1 – 14 of 14) sorted by relevance

/third_party/skia/tests/graphite/
DUniformCacheTest.cpp20 sk_sp<UniformData> make_ud(int numUniforms, int dataSize) { in make_ud()
30 sk_sp<UniformData> ud = UniformData::Make(numUniforms, kUniforms, dataSize); in make_ud()
51 sk_sp<UniformData> result1; in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
53 sk_sp<UniformData> ud1 = make_ud(2, 16); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
55 REPORTER_ASSERT(reporter, result1->id() != UniformData::kInvalidUniformID); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
57 sk_sp<UniformData> lookup = cache->lookup(result1->id()); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
65 sk_sp<UniformData> ud2 = make_ud(2, 16); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
66 sk_sp<UniformData> result2 = cache->findOrCreate(ud2); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
67 REPORTER_ASSERT(reporter, result2->id() != UniformData::kInvalidUniformID); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
68 REPORTER_ASSERT(reporter, ud2->id() == UniformData::kInvalidUniformID); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
[all …]
DCommandBufferTest.cpp72 struct UniformData { in DEF_GRAPHITE_TEST_FOR_CONTEXTS() struct
78 2*sizeof(UniformData), BufferType::kUniform, PrioritizeGpuReads::kNo); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
92 UniformData* uniforms = (UniformData*)uniformBuffer->map(); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
98 uniformOffset += sizeof(UniformData); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
DUniformTest.cpp90 REPORTER_ASSERT(reporter, ud->id() != UniformData::kInvalidUniformID); in DEF_GRAPHITE_TEST()
/third_party/skia/experimental/graphite/src/
DUniformCache.h17 class UniformData; variable
23 sk_sp<UniformData> findOrCreate(sk_sp<UniformData>);
25 sk_sp<UniformData> lookup(uint32_t uniqueID);
35 size_t operator()(sk_sp<UniformData>) const;
39 bool operator()(sk_sp<UniformData>, sk_sp<UniformData>) const;
42 std::unordered_set<sk_sp<UniformData>, Hash, Eq> fUniformDataHash;
43 std::vector<sk_sp<UniformData>> fUniformDataVector;
DContextUtils.cpp43 sk_sp<UniformData> make_gradient_uniform_data_common(void* srcs[kNumGradientUniforms]) { in make_gradient_uniform_data_common()
52 sk_sp<UniformData> result = UniformData::Make(kNumGradientUniforms, in make_gradient_uniform_data_common()
61 sk_sp<UniformData> make_linear_gradient_uniform_data(SkPoint startPoint, in make_linear_gradient_uniform_data()
78 sk_sp<UniformData> make_radial_gradient_uniform_data(SkPoint point, in make_radial_gradient_uniform_data()
97 sk_sp<UniformData> make_sweep_gradient_uniform_data(SkPoint point, in make_sweep_gradient_uniform_data()
115 sk_sp<UniformData> make_conical_gradient_uniform_data(SkPoint point0, in make_conical_gradient_uniform_data()
154 sk_sp<UniformData> make_solid_uniform_data(SkColor4f color) { in make_solid_uniform_data()
160 sk_sp<UniformData> result = UniformData::Make(kNumSolidUniforms, kSolidUniforms, dataSize); in make_solid_uniform_data()
171 sk_sp<UniformData> UniformData::Make(int count, in Make()
178 return sk_sp<UniformData>(new UniformData(count, uniforms, offsets, data, dataSize)); in Make()
[all …]
DUniformCache.cpp15 size_t UniformCache::Hash::operator()(sk_sp<UniformData> ud) const { in operator ()()
19 bool UniformCache::Eq::operator()(sk_sp<UniformData> a, sk_sp<UniformData> b) const { in operator ()()
35 sk_sp<UniformData> UniformCache::findOrCreate(sk_sp<UniformData> ud) { in findOrCreate()
39 SkASSERT((*iter)->id() != UniformData::kInvalidUniformID); in findOrCreate()
50 sk_sp<UniformData> UniformCache::lookup(uint32_t uniqueID) { in lookup()
DContextUtils.h37 class UniformData : public SkRefCnt {
43 static sk_sp<UniformData> Make(int count,
47 ~UniformData() override { in ~UniformData()
69 UniformData(int count, in UniformData() function
89 std::tuple<Combination, sk_sp<UniformData>> ExtractCombo(UniformCache*, const SkPaint&);
DDrawPass.cpp134 skgpu::UniformData* lookup(skgpu::Recorder* recorder, uint32_t uniformID) { in lookup()
136 sk_sp<skgpu::UniformData> tmp = recorder->uniformCache()->lookup(uniformID); in lookup()
193 uint32_t shadingUniformID = UniformData::kInvalidUniformID; in Make()
209 uint32_t shadingIndex = UniformData::kInvalidUniformID; in Make()
241 uint32_t lastShadingUniforms = UniformData::kInvalidUniformID; in Make()
286 lastShadingUniforms = UniformData::kInvalidUniformID; in Make()
/third_party/skia/third_party/externals/dawn/src/tests/perf_tests/
DDrawCallPerf.cpp70 enum class UniformData { enum
98 UniformData uniformDataType;
103 std::tuple<Pipeline, VertexBuffer, BindGroup, UniformData, RenderBundle>;
123 UniformData::Static, RenderBundle::No}; in MakeParam()
133 std::get<BindGroup>(paramTuple), std::get<UniformData>(paramTuple), in MakeParam()
189 case UniformData::Static: in operator <<()
191 case UniformData::Dynamic: in operator <<()
559 if (GetParam().uniformDataType == UniformData::Dynamic) { in Step()
661 UniformData::Dynamic), // Update per-draw data: Multiple bind groups
663 UniformData::Dynamic), // Update per-draw data: Dynamic bind groups
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DRewriteArrayOfArrayOfOpaqueUniforms.cpp22 struct UniformData struct
46 using UniformMap = angle::HashMap<const TVariable *, UniformData>;
151 const UniformData &data = flattenedIter->second; in RewriteArrayOfArraySubscriptExpression()
278 UniformData &data = mUniformMap[uniformVariable]; in visitDeclaration()
/third_party/skia/experimental/graphite/src/mtl/
DMtlGraphicsPipeline.mm51 "} UniformData;\n"
53 "vertex VertexOutput vertexMain(constant UniformData& uniforms [[buffer(0)]],\n"
62 "fragment float4 fragmentMain(constant UniformData& uniforms [[buffer(0)]],\n"
83 "} UniformData;\n"
86 " constant UniformData& uniforms [[buffer(0)]],\n"
95 "fragment float4 fragmentMain(constant UniformData& uniforms [[buffer(0)]],\n"
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fSRGBDecodeTests.cpp210 struct UniformData struct
212 UniformData (glw::GLuint uniformLocation, const std::string& uniformName) in UniformData() argument
217 ~UniformData (void) {} in ~UniformData() argument
591 const std::vector<UniformData>& getUniformDataList (void) const;
605 std::vector<UniformData> m_uniformDataList;
655 UniformData uniformData(location, std::string(&uniformName[0], strlen(&uniformName[0]))); in SRGBTestProgram()
697 const std::vector<UniformData>& SRGBTestProgram::getUniformDataList (void) const in getUniformDataList()
892 void toggleDecode (const std::vector<UniformData>& uniformDataList);
1193 void SRGBTestCase::toggleDecode (const std::vector<UniformData>& uniformDataList) in toggleDecode()
/third_party/openGLES/extensions/ARB/
DARB_gpu_shader5.txt1755 uniform UniformData {
1760 "block[3]" in shader code, and "UniformData[0]" through "UniformData[3]"
1762 referred to as "UniformData.stuff" in the API. A similar approach was
/third_party/skia/third_party/externals/opengl-registry/extensions/ARB/
DARB_gpu_shader5.txt1745 uniform UniformData {
1750 "block[3]" in shader code, and "UniformData[0]" through "UniformData[3]"
1752 referred to as "UniformData.stuff" in the API. A similar approach was