Lines Matching defs:block
1269 stream << "Failed to query program for uniforms in block: " << variable.m_descriptor.m_name
3867 /** Check if variable is block
3869 * @return true if variable type is block, false otherwise
4510 /** Adds new block interface
4717 /* Prefix name with stage ID, empty means default block */
4726 /* Clone block */
4732 Interface* block = CloneBlockForStage(*interface, stage, storage, prefix);
4734 var->m_descriptor.m_interface = block;
4778 /** clone block to specific stage
4780 * @param block Block to be copied
4782 * @param storage Storage used by block
4783 * @param prefix Prefix used in block name
4787 Interface* ProgramInterface::CloneBlockForStage(const Interface& block, Shader::STAGES stage, Variable::STORAGE storage,
4791 std::string name = block.m_name;
4805 ptr->m_members = block.m_members;
4930 /** Search for block of given name
4932 * @param name Name of block
4934 * @return Pointer to block or 0
8840 "Test verifies that std140 is required when offset and/or align qualifiers are used with uniform block")
9165 "} block;\n"
9173 " if (TYPE(1) == block.member)\n"
9197 "} block;\n"
9204 " if (TYPE(1) == block.member)\n"
9245 "} block;\n"
9252 " if (TYPE(1) == block.member)\n"
9299 "} block;\n"
9306 " if (TYPE(1) == block.member)\n"
9342 "} block;\n"
9349 " if (TYPE(1) == block.member)\n"
9373 "} block;\n"
9380 " if (TYPE(1) == block.member)\n"
9482 /** Get the maximum size for an uniform block
9484 * @return The maximum size in basic machine units of a uniform block.
9625 "} block;\n"
9633 " if ((B_TYPE(1) == block.b) ||\n"
9634 " (A_TYPE(0) == block.a) )\n"
9659 "} block;\n"
9666 " if ((B_TYPE(1) == block.b) ||\n"
9667 " (A_TYPE(0) == block.a) )\n"
9709 "} block;\n"
9716 " if ((B_TYPE(1) == block.b) ||\n"
9717 " (A_TYPE(0) == block.a) )\n"
9765 "} block;\n"
9772 " if ((B_TYPE(1) == block.b) ||\n"
9773 " (A_TYPE(0) == block.a) )\n"
9810 "} block;\n"
9817 " if ((B_TYPE(1) == block.b) ||\n"
9818 " (A_TYPE(0) == block.a) )\n"
9843 "} block;\n"
9850 " if ((B_TYPE(1) == block.b) ||\n"
9851 " (A_TYPE(0) == block.a) )\n"
10120 "} block;\n"
10128 " if (TYPE(0) == block.a)\n"
10130 " result = vec4(1, 1, 1, 1) - block.b;\n"
10153 "} block;\n"
10160 " if (TYPE(0) == block.a)\n"
10162 " fs_out = block.b;\n"
10202 "} block;\n"
10209 " if (TYPE(0) == block.a)\n"
10211 " gs_fs = block.b;\n"
10257 "} block;\n"
10264 " if (TYPE(0) == block.a)\n"
10266 " tcs_tes[gl_InvocationID] = block.b;\n"
10301 "} block;\n"
10308 " if (TYPE(0) == block.a)\n"
10310 " tes_gs = block.b;\n"
10333 "} block;\n"
10340 " if (TYPE(0) == block.a)\n"
10342 " vs_tcs = block.b;\n"
10838 "block")
11192 /** Get the maximum size for a shader storage block
11194 * @return The maximum size in basic machine units of a shader storage block.
11223 "} block;\n"
11231 " if (TYPE(1) == block.member)\n"
11255 "} block;\n"
11262 " if (TYPE(1) == block.member)\n"
11303 "} block;\n"
11310 " if (TYPE(1) == block.member)\n"
11357 "} block;\n"
11364 " if (TYPE(1) == block.member)\n"
11400 "} block;\n"
11407 " if (TYPE(1) == block.member)\n"
11431 "} block;\n"
11438 " if (TYPE(1) == block.member)\n"
11586 "} block;\n"
11594 " if ((B_TYPE(1) == block.b) ||\n"
11595 " (A_TYPE(0) == block.a) )\n"
11620 "} block;\n"
11627 " if ((B_TYPE(1) == block.b) ||\n"
11628 " (A_TYPE(0) == block.a) )\n"
11670 "} block;\n"
11677 " if ((B_TYPE(1) == block.b) ||\n"
11678 " (A_TYPE(0) == block.a) )\n"
11726 "} block;\n"
11733 " if ((B_TYPE(1) == block.b) ||\n"
11734 " (A_TYPE(0) == block.a) )\n"
11771 "} block;\n"
11778 " if ((B_TYPE(1) == block.b) ||\n"
11779 " (A_TYPE(0) == block.a) )\n"
11804 "} block;\n"
11811 " if ((B_TYPE(1) == block.b) ||\n"
11812 " (A_TYPE(0) == block.a) )\n"
11965 "} block;\n"
11973 " if (TYPE(0) == block.a)\n"
11975 " result = vec4(1, 1, 1, 1) - block.b;\n"
11998 "} block;\n"
12005 " if (TYPE(0) == block.a)\n"
12007 " fs_out = block.b;\n"
12047 "} block;\n"
12054 " if (TYPE(0) == block.a)\n"
12056 " gs_fs = block.b;\n"
12102 "} block;\n"
12109 " if (TYPE(0) == block.a)\n"
12111 " tcs_tes[gl_InvocationID] = block.b;\n"
12146 "} block;\n"
12153 " if (TYPE(0) == block.a)\n"
12155 " tes_gs = block.b;\n"
12178 "} block;\n"
12185 " if (TYPE(0) == block.a)\n"
12187 " vs_tcs = block.b;\n"
13558 Utils::Interface* block = program_interface.Block("vs_tcs_Block");
13560 block->Member("fifth", "" /* qualifiers */, 0 /* component */, 4 /* location */, vec4, false /* normalized */,
13563 block->Member("third", "layout (location = 2)" /* qualifiers */, 0 /* component */, 2 /* location */, vec4,
13566 block->Member("fourth", "" /* qualifiers */, 0 /* component */, 3 /* location */, vec4, false /* normalized */,
13569 si.Output("vs_tcs_block", "layout (location = 4)", 0 /* component */, 4 /* location */, block,
13617 "Test verifies that compilation error is reported when not all members of block are qualified with location")
14025 "Test verifies that compiler assigns subsequent locations to block members, even if this causes errors")
21477 stream << "buffer stride: 32, block 3xvec4 offset 0";
22234 "Test verifies that xfb_stride qualifier is respected for block member")
23361 There is no packing qualifier for uniform block gs_block, according to spec, it should be "shared" by default,
23362 the definition equals to "layout(binding=0, shared)", if the block is declared as shared, each block member will
23363 not be packed, and each block member's layout in memory is implementation dependent, so we can't use the API
23364 glBufferData() to update the UBO directly, we need to query each block member's offset first, then upload the
23367 sure all the block members are packed and the application can upload the data by glBufferData() directly.
24668 // Uniform block must be declared with std140, otherwise each block member is not packed
24669 "layout(binding = 0, std140) uniform block {\n"
25174 "Test verifies that compiler reports error when block member has different xfb_buffer qualifier than buffer")
25719 * qualified variable or block member, or a compile-time error results.
26194 "layout(binding = 0) uniform block {\n"
26615 "layout(binding = 0) uniform block {\n"
26843 "Test verifies that inactive block members are captured")
27001 "layout(binding = 0) uniform block {\n"
27348 "layout(binding = 0, std140) uniform block {\n"