Searched refs:variable_accessor (Results 1 – 6 of 6) sorted by relevance
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/compiler/ |
D | variable_accessor_test.cc | 31 VariableAccessor variable_accessor(/*inline_values=*/true); in TEST() local 33 EXPECT_EQ(variable_accessor.Rewrite("unknown", &result), in TEST() 38 VariableAccessor variable_accessor(/*inline_values=*/true); in TEST() local 39 ASSERT_TRUE(variable_accessor.AddUniformParameter({"var", int32_t(1)})); in TEST() 41 ASSERT_EQ(variable_accessor.Rewrite("var", &result), RewriteStatus::SUCCESS); in TEST() 46 VariableAccessor variable_accessor(/*inline_values=*/true); in TEST() local 47 ASSERT_TRUE(variable_accessor.AddUniformParameter({"var", int2(1, 2)})); in TEST() 49 ASSERT_EQ(variable_accessor.Rewrite("var", &result), RewriteStatus::SUCCESS); in TEST() 54 VariableAccessor variable_accessor(/*inline_values=*/true); in TEST() local 56 variable_accessor.AddUniformParameter({"var", float2(1.0, 2.1234567)})); in TEST() [all …]
|
D | object_accessor_test.cc | 49 VariableAccessor variable_accessor(/*inline_values=*/false); in TEST() local 50 ObjectAccessor accessor(false, &variable_accessor); in TEST() 57 VariableAccessor variable_accessor(/*inline_values=*/false); in TEST() local 58 ObjectAccessor accessor(false, &variable_accessor); in TEST() 63 EXPECT_TRUE(variable_accessor.GetUniformParameters().empty()); in TEST() 68 VariableAccessor variable_accessor(/*inline_values=*/false); in TEST() local 69 ObjectAccessor accessor(false, &variable_accessor); in TEST() 74 EXPECT_TRUE(variable_accessor.GetUniformParameters().empty()); in TEST() 79 VariableAccessor variable_accessor(/*inline_values=*/false); in TEST() local 80 ObjectAccessor accessor(false, &variable_accessor); in TEST() [all …]
|
D | shader_codegen.cc | 38 VariableAccessor variable_accessor(options_.inline_parameters, in Build() local 41 options_.sampler_textures, &variable_accessor); in Build() 53 if (variable_accessor.IsEmptyVariableLength(const_ref)) { in Build() 57 if (!variable_accessor.AddUniformParameter(std::move(variable))) { in Build() 70 if (!variable_accessor.AddSharedVariable(std::move(variable))) { in Build() 152 preprocessor.AddRewrite(&variable_accessor); in Build() 157 main_source_code = absl::StrCat(variable_accessor.GetConstDeclarations(), in Build() 170 variable_accessor.GetUniformParameterDeclarations(), "\n", // in Build() 171 variable_accessor.GetSharedVariableDeclarations(), "\n", // in Build() 176 ShaderCode(variable_accessor.GetUniformParameters(), in Build()
|
D | object_accessor.h | 57 ObjectAccessor(bool is_mali, VariableAccessor* variable_accessor) in ObjectAccessor() argument 58 : ObjectAccessor(is_mali, /*sampler_textures=*/false, variable_accessor) { in ObjectAccessor() 62 VariableAccessor* variable_accessor) in ObjectAccessor() argument 65 variable_accessor_(variable_accessor) {} in ObjectAccessor()
|
D | BUILD | 37 ":variable_accessor", 55 ":variable_accessor", 83 ":variable_accessor", 150 ":variable_accessor", 194 name = "variable_accessor", 195 srcs = ["variable_accessor.cc"], 196 hdrs = ["variable_accessor.h"], 216 ":variable_accessor",
|
D | object_accessor.cc | 451 variable_accessor->AddUniformParameter( in operator ()() 458 variable_accessor->AddUniformParameter( in operator ()() 460 variable_accessor->AddUniformParameter( in operator ()() 465 VariableAccessor* variable_accessor; member
|