1 /* 2 * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #include <climits> 17 #include <gtest/gtest.h> 18 #include "../UboBaseFunc.h" 19 #include "../ActsUbo0005TestSuite.h" 20 #include "shrinkdefine.h" 21 22 using namespace std; 23 using namespace testing::ext; 24 using namespace OHOS; 25 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferStd140vertex, "dEQP-VK.ubo.single_struct.per_block_buffer.std140_vertex*"); 26 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferStd140fragment, "dEQP-VK.ubo.single_struct.per_block_buffer.std140_fragment*"); 27 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferStd140both, "dEQP-VK.ubo.single_struct.per_block_buffer.std140_both*"); 28 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferStd140vertexcompaccess, "dEQP-VK.ubo.single_struct.per_block_buffer.std140_vertex_comp_access*"); 29 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferStd140fragmentcompaccess, "dEQP-VK.ubo.single_struct.per_block_buffer.std140_fragment_comp_access*"); 30 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferStd140bothcompaccess, "dEQP-VK.ubo.single_struct.per_block_buffer.std140_both_comp_access*"); 31 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferStd140instancearrayvertex, "dEQP-VK.ubo.single_struct.per_block_buffer.std140_instance_array_vertex*"); 32 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferStd140instancearrayfragment, "dEQP-VK.ubo.single_struct.per_block_buffer.std140_instance_array_fragment*"); 33 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferStd140instancearrayboth, "dEQP-VK.ubo.single_struct.per_block_buffer.std140_instance_array_both*"); 34 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferStd140instancearrayvertexcompaccess, "dEQP-VK.ubo.single_struct.per_block_buffer.std140_instance_array_vertex_comp_access*"); 35 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferStd140instancearrayfragmentcompaccess, "dEQP-VK.ubo.single_struct.per_block_buffer.std140_instance_array_fragment_comp_access*"); 36 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferStd140instancearraybothcompaccess, "dEQP-VK.ubo.single_struct.per_block_buffer.std140_instance_array_both_comp_access*"); 37 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferStd430vertex, "dEQP-VK.ubo.single_struct.per_block_buffer.std430_vertex*"); 38 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferStd430fragment, "dEQP-VK.ubo.single_struct.per_block_buffer.std430_fragment*"); 39 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferStd430both, "dEQP-VK.ubo.single_struct.per_block_buffer.std430_both*"); 40 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferStd430vertexcompaccess, "dEQP-VK.ubo.single_struct.per_block_buffer.std430_vertex_comp_access*"); 41 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferStd430fragmentcompaccess, "dEQP-VK.ubo.single_struct.per_block_buffer.std430_fragment_comp_access*"); 42 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferStd430bothcompaccess, "dEQP-VK.ubo.single_struct.per_block_buffer.std430_both_comp_access*"); 43 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferStd430instancearrayvertex, "dEQP-VK.ubo.single_struct.per_block_buffer.std430_instance_array_vertex*"); 44 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferStd430instancearrayfragment, "dEQP-VK.ubo.single_struct.per_block_buffer.std430_instance_array_fragment*"); 45 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferStd430instancearrayboth, "dEQP-VK.ubo.single_struct.per_block_buffer.std430_instance_array_both*"); 46 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferStd430instancearrayvertexcompaccess, "dEQP-VK.ubo.single_struct.per_block_buffer.std430_instance_array_vertex_comp_access*"); 47 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferStd430instancearrayfragmentcompaccess, "dEQP-VK.ubo.single_struct.per_block_buffer.std430_instance_array_fragment_comp_access*"); 48 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferStd430instancearraybothcompaccess, "dEQP-VK.ubo.single_struct.per_block_buffer.std430_instance_array_both_comp_access*"); 49 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferScalarvertex, "dEQP-VK.ubo.single_struct.per_block_buffer.scalar_vertex*"); 50 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferScalarfragment, "dEQP-VK.ubo.single_struct.per_block_buffer.scalar_fragment*"); 51 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferScalarboth, "dEQP-VK.ubo.single_struct.per_block_buffer.scalar_both*"); 52 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferScalarvertexcompaccess, "dEQP-VK.ubo.single_struct.per_block_buffer.scalar_vertex_comp_access*"); 53 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferScalarfragmentcompaccess, "dEQP-VK.ubo.single_struct.per_block_buffer.scalar_fragment_comp_access*"); 54 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferScalarbothcompaccess, "dEQP-VK.ubo.single_struct.per_block_buffer.scalar_both_comp_access*"); 55 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferScalarinstancearrayvertex, "dEQP-VK.ubo.single_struct.per_block_buffer.scalar_instance_array_vertex*"); 56 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferScalarinstancearrayfragment, "dEQP-VK.ubo.single_struct.per_block_buffer.scalar_instance_array_fragment*"); 57 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferScalarinstancearrayboth, "dEQP-VK.ubo.single_struct.per_block_buffer.scalar_instance_array_both*"); 58 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferScalarinstancearrayvertexcompaccess, "dEQP-VK.ubo.single_struct.per_block_buffer.scalar_instance_array_vertex_comp_access*"); 59 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferScalarinstancearrayfragmentcompaccess, "dEQP-VK.ubo.single_struct.per_block_buffer.scalar_instance_array_fragment_comp_access*"); 60 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSPerblockbufferScalarinstancearraybothcompaccess, "dEQP-VK.ubo.single_struct.per_block_buffer.scalar_instance_array_both_comp_access*"); 61 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSSinglebufferStd140instancearrayvertex, "dEQP-VK.ubo.single_struct.single_buffer.std140_instance_array_vertex*"); 62 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSSinglebufferStd140instancearrayfragment, "dEQP-VK.ubo.single_struct.single_buffer.std140_instance_array_fragment*"); 63 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSSinglebufferStd140instancearrayboth, "dEQP-VK.ubo.single_struct.single_buffer.std140_instance_array_both*"); 64 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSSinglebufferStd140instancearrayvertexcompaccess, "dEQP-VK.ubo.single_struct.single_buffer.std140_instance_array_vertex_comp_access*"); 65 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSSinglebufferStd140instancearrayfragmentcompaccess, "dEQP-VK.ubo.single_struct.single_buffer.std140_instance_array_fragment_comp_access*"); 66 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSSinglebufferStd140instancearraybothcompaccess, "dEQP-VK.ubo.single_struct.single_buffer.std140_instance_array_both_comp_access*"); 67 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSSinglebufferStd430instancearrayvertex, "dEQP-VK.ubo.single_struct.single_buffer.std430_instance_array_vertex*"); 68 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSSinglebufferStd430instancearrayfragment, "dEQP-VK.ubo.single_struct.single_buffer.std430_instance_array_fragment*"); 69 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSSinglebufferStd430instancearrayboth, "dEQP-VK.ubo.single_struct.single_buffer.std430_instance_array_both*"); 70 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSSinglebufferStd430instancearrayvertexcompaccess, "dEQP-VK.ubo.single_struct.single_buffer.std430_instance_array_vertex_comp_access*"); 71 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSSinglebufferStd430instancearrayfragmentcompaccess, "dEQP-VK.ubo.single_struct.single_buffer.std430_instance_array_fragment_comp_access*"); 72 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSSinglebufferStd430instancearraybothcompaccess, "dEQP-VK.ubo.single_struct.single_buffer.std430_instance_array_both_comp_access*"); 73 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSSinglebufferScalarinstancearrayvertex, "dEQP-VK.ubo.single_struct.single_buffer.scalar_instance_array_vertex*"); 74 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSSinglebufferScalarinstancearrayfragment, "dEQP-VK.ubo.single_struct.single_buffer.scalar_instance_array_fragment*"); 75 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSSinglebufferScalarinstancearrayboth, "dEQP-VK.ubo.single_struct.single_buffer.scalar_instance_array_both*"); 76 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSSinglebufferScalarinstancearrayvertexcompaccess, "dEQP-VK.ubo.single_struct.single_buffer.scalar_instance_array_vertex_comp_access*"); 77 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSSinglebufferScalarinstancearrayfragmentcompaccess, "dEQP-VK.ubo.single_struct.single_buffer.scalar_instance_array_fragment_comp_access*"); 78 static SHRINK_HWTEST_F(ActsUbo0005TS, TCSSSinglebufferScalarinstancearraybothcompaccess, "dEQP-VK.ubo.single_struct.single_buffer.scalar_instance_array_both_comp_access*"); 79