Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Unified Diff: gpu/command_buffer/service/disk_cache_proto.proto

Issue 2019293002: Save interface block infomation to program cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/disk_cache_proto.proto
diff --git a/gpu/command_buffer/service/disk_cache_proto.proto b/gpu/command_buffer/service/disk_cache_proto.proto
index 6d78f4b9146fd403bb694c8f04522636277fd0e0..b1f47fe5238aed92214b213509ea47dc42cfc260 100644
--- a/gpu/command_buffer/service/disk_cache_proto.proto
+++ b/gpu/command_buffer/service/disk_cache_proto.proto
@@ -32,12 +32,29 @@ message ShaderOutputVariableProto {
optional int32 location = 2;
}
+message ShaderInterfaceBlockFieldProto {
+ optional ShaderVariableProto basic = 1;
+ optional bool is_row_major_layout = 2;
+}
+
+message ShaderInterfaceBlockProto {
+ optional string name = 1;
+ optional string mapped_name = 2;
+ optional string instance_name = 3;
+ optional uint32 array_size = 4;
xinghua.cao 2016/05/30 09:55:46 variable 'layout' type is sh::BlockLayoutType(enum
qiankun 2016/05/30 12:42:11 I think you can define same enum in proto file.
xinghua.cao 2016/05/31 06:09:10 If I define a same enum type in proto file, the na
+ optional int32 layout = 5;
+ optional bool is_row_major_layout = 6;
+ optional bool static_use = 7;
+ repeated ShaderInterfaceBlockFieldProto fields = 8;
+}
+
message ShaderProto {
optional bytes sha = 1;
repeated ShaderAttributeProto attribs = 2;
repeated ShaderUniformProto uniforms = 3;
repeated ShaderVaryingProto varyings = 4;
repeated ShaderOutputVariableProto output_variables = 5;
+ repeated ShaderInterfaceBlockProto interface_blocks = 6;
}
message GpuProgramProto {
« no previous file with comments | « no previous file | gpu/command_buffer/service/memory_program_cache.h » ('j') | gpu/command_buffer/service/memory_program_cache.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698