1 /*------------------------------------------------------------------------
2 * Vulkan Conformance Tests
3 * ------------------------
5 * Copyright (c) 2017 The Khronos Group Inc.
6 * Copyright (c) 2017 Codeplay Software Ltd.
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
22 * \brief Subgroups Tests
23 */ /*--------------------------------------------------------------------*/
25 #include "vktSubgroupsShuffleTests.hpp"
26 #include "vktSubgroupsTestsUtils.hpp"
47 static bool checkVertexPipelineStages(std::vector<const void*> datas,
48 deUint32 width, deUint32)
50 return vkt::subgroups::check(datas, width, 1);
53 static bool checkCompute(std::vector<const void*> datas,
54 const deUint32 numWorkgroups[3], const deUint32 localSize[3],
57 return vkt::subgroups::checkCompute(datas, numWorkgroups, localSize, 1);
60 std::string getOpTypeName(int opType)
65 DE_FATAL("Unsupported op type");
68 return "subgroupShuffle";
69 case OPTYPE_SHUFFLE_XOR:
70 return "subgroupShuffleXor";
71 case OPTYPE_SHUFFLE_UP:
72 return "subgroupShuffleUp";
73 case OPTYPE_SHUFFLE_DOWN:
74 return "subgroupShuffleDown";
81 VkShaderStageFlags shaderStage;
85 const std::string to_string(int x) {
86 std::ostringstream oss;
91 const std::string DeclSource(CaseDefinition caseDef, int baseBinding)
94 "layout(set = 0, binding = " + to_string(baseBinding) + ", std430) readonly buffer Buffer2\n"
96 " " + subgroups::getFormatNameForGLSL(caseDef.format) + " data1[];\n"
98 "layout(set = 0, binding = " + to_string(baseBinding + 1) + ", std430) readonly buffer Buffer3\n"
104 const std::string TestSource(CaseDefinition caseDef)
106 std::string idTable[OPTYPE_LAST];
107 idTable[OPTYPE_SHUFFLE] = "id_in";
108 idTable[OPTYPE_SHUFFLE_XOR] = "gl_SubgroupInvocationID ^ id_in";
109 idTable[OPTYPE_SHUFFLE_UP] = "gl_SubgroupInvocationID - id_in";
110 idTable[OPTYPE_SHUFFLE_DOWN] = "gl_SubgroupInvocationID + id_in";
112 const std::string testSource =
114 " uvec4 mask = subgroupBallot(true);\n"
115 " uint id_in = data2[gl_SubgroupInvocationID] & (gl_SubgroupSize - 1);\n"
116 " " + subgroups::getFormatNameForGLSL(caseDef.format) + " op = "
117 + getOpTypeName(caseDef.opType) + "(data1[gl_SubgroupInvocationID], id_in);\n"
118 " uint id = " + idTable[caseDef.opType] + ";\n"
119 " if ((id < gl_SubgroupSize) && subgroupBallotBitExtract(mask, id))\n"
121 " temp_res = (op == data1[id]) ? 1 : 0;\n"
125 " temp_res = 1; // Invocation we read from was inactive, so we can't verify results!\n"
131 void initFrameBufferPrograms (SourceCollections& programCollection, CaseDefinition caseDef)
133 const vk::ShaderBuildOptions buildOptions (programCollection.usedVulkanVersion, vk::SPIRV_VERSION_1_3, 0u);
135 subgroups::setFragmentShaderFrameBuffer(programCollection);
137 if (VK_SHADER_STAGE_VERTEX_BIT != caseDef.shaderStage)
138 subgroups::setVertexShaderFrameBuffer(programCollection);
140 const std::string extSource =
141 (OPTYPE_SHUFFLE == caseDef.opType || OPTYPE_SHUFFLE_XOR == caseDef.opType) ?
142 "#extension GL_KHR_shader_subgroup_shuffle: enable\n" :
143 "#extension GL_KHR_shader_subgroup_shuffle_relative: enable\n";
145 const std::string testSource = TestSource(caseDef);
147 if (VK_SHADER_STAGE_VERTEX_BIT == caseDef.shaderStage)
149 std::ostringstream vertexSrc;
150 vertexSrc << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450)<<"\n"
151 << "layout(location = 0) in highp vec4 in_position;\n"
152 << "layout(location = 0) out float result;\n"
154 << "#extension GL_KHR_shader_subgroup_ballot: enable\n"
155 << "layout(set = 0, binding = 0) uniform Buffer1\n"
157 << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " data1[" << subgroups::maxSupportedSubgroupSize() << "];\n"
159 << "layout(set = 0, binding = 1) uniform Buffer2\n"
161 << " uint data2[" << subgroups::maxSupportedSubgroupSize() << "];\n"
164 << "void main (void)\n"
167 << " result = temp_res;\n"
168 << " gl_Position = in_position;\n"
169 << " gl_PointSize = 1.0f;\n"
171 programCollection.glslSources.add("vert")
172 << glu::VertexSource(vertexSrc.str()) << buildOptions;
174 else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage)
176 std::ostringstream geometry;
178 geometry << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450)<<"\n"
180 << "#extension GL_KHR_shader_subgroup_ballot: enable\n"
181 << "layout(points) in;\n"
182 << "layout(points, max_vertices = 1) out;\n"
183 << "layout(location = 0) out float out_color;\n"
184 << "layout(set = 0, binding = 0) uniform Buffer1\n"
186 << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " data1[" << subgroups::maxSupportedSubgroupSize() << "];\n"
188 << "layout(set = 0, binding = 1) uniform Buffer2\n"
190 << " uint data2[" << subgroups::maxSupportedSubgroupSize() << "];\n"
193 << "void main (void)\n"
196 << " out_color = temp_res;\n"
197 << " gl_Position = gl_in[0].gl_Position;\n"
198 << " EmitVertex();\n"
199 << " EndPrimitive();\n"
202 programCollection.glslSources.add("geometry")
203 << glu::GeometrySource(geometry.str()) << buildOptions;
205 else if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage)
207 std::ostringstream controlSource;
209 controlSource << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450)<<"\n"
211 << "#extension GL_KHR_shader_subgroup_ballot: enable\n"
212 << "layout(vertices = 2) out;\n"
213 << "layout(location = 0) out float out_color[];\n"
214 << "layout(set = 0, binding = 0) uniform Buffer1\n"
216 << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " data1[" << subgroups::maxSupportedSubgroupSize() << "];\n"
218 << "layout(set = 0, binding = 1) uniform Buffer2\n"
220 << " uint data2[" << subgroups::maxSupportedSubgroupSize() << "];\n"
223 << "void main (void)\n"
225 << " if (gl_InvocationID == 0)\n"
227 << " gl_TessLevelOuter[0] = 1.0f;\n"
228 << " gl_TessLevelOuter[1] = 1.0f;\n"
231 << " out_color[gl_InvocationID] = temp_res;\n"
232 << " gl_out[gl_InvocationID].gl_Position = gl_in[gl_InvocationID].gl_Position;\n"
235 programCollection.glslSources.add("tesc")
236 << glu::TessellationControlSource(controlSource.str()) << buildOptions;
237 subgroups::setTesEvalShaderFrameBuffer(programCollection);
240 else if (VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT == caseDef.shaderStage)
242 std::ostringstream evaluationSource;
243 evaluationSource << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450)<<"\n"
245 << "#extension GL_KHR_shader_subgroup_ballot: enable\n"
246 << "layout(isolines, equal_spacing, ccw ) in;\n"
247 << "layout(location = 0) out float out_color;\n"
248 << "layout(set = 0, binding = 0) uniform Buffer1\n"
250 << " " << subgroups::getFormatNameForGLSL(caseDef.format) << " data1[" << subgroups::maxSupportedSubgroupSize() << "];\n"
252 << "layout(set = 0, binding = 1) uniform Buffer2\n"
254 << " uint data2[" << subgroups::maxSupportedSubgroupSize() << "];\n"
257 << "void main (void)\n"
260 << " out_color = temp_res;\n"
261 << " gl_Position = mix(gl_in[0].gl_Position, gl_in[1].gl_Position, gl_TessCoord.x);\n"
264 subgroups::setTesCtrlShaderFrameBuffer(programCollection);
265 programCollection.glslSources.add("tese")
266 << glu::TessellationEvaluationSource(evaluationSource.str()) << buildOptions;
270 DE_FATAL("Unsupported shader stage");
274 void initPrograms(SourceCollections& programCollection, CaseDefinition caseDef)
276 const std::string vSource =
278 "#extension GL_KHR_shader_subgroup_ballot: enable\n";
279 const std::string eSource =
280 (OPTYPE_SHUFFLE == caseDef.opType || OPTYPE_SHUFFLE_XOR == caseDef.opType) ?
281 "#extension GL_KHR_shader_subgroup_shuffle: enable\n" :
282 "#extension GL_KHR_shader_subgroup_shuffle_relative: enable\n";
283 const std::string extSource = vSource + eSource;
285 const std::string testSource = TestSource(caseDef);
287 if (VK_SHADER_STAGE_COMPUTE_BIT == caseDef.shaderStage)
289 std::ostringstream src;
292 << "layout (local_size_x_id = 0, local_size_y_id = 1, local_size_z_id = 2) in;\n"
293 << "layout(set = 0, binding = 0, std430) buffer Buffer1\n"
295 << " uint result[];\n"
297 << DeclSource(caseDef, 1)
299 << "void main (void)\n"
301 << " uvec3 globalSize = gl_NumWorkGroups * gl_WorkGroupSize;\n"
302 << " highp uint offset = globalSize.x * ((globalSize.y * "
303 "gl_GlobalInvocationID.z) + gl_GlobalInvocationID.y) + "
304 "gl_GlobalInvocationID.x;\n"
306 << " result[offset] = temp_res;\n"
309 programCollection.glslSources.add("comp")
310 << glu::ComputeSource(src.str()) << vk::ShaderBuildOptions(programCollection.usedVulkanVersion, vk::SPIRV_VERSION_1_3, 0u);
314 const std::string declSource = DeclSource(caseDef, 4);
317 const string vertex =
319 "layout(set = 0, binding = 0, std430) buffer Buffer1\n"
328 " result[gl_VertexIndex] = temp_res;\n"
329 " float pixelSize = 2.0f/1024.0f;\n"
330 " float pixelPosition = pixelSize/2.0f - 1.0f;\n"
331 " gl_Position = vec4(float(gl_VertexIndex) * pixelSize + pixelPosition, 0.0f, 0.0f, 1.0f);\n"
332 " gl_PointSize = 1.0f;\n"
335 programCollection.glslSources.add("vert")
336 << glu::VertexSource(vertex) << vk::ShaderBuildOptions(programCollection.usedVulkanVersion, vk::SPIRV_VERSION_1_3, 0u);
342 "layout(vertices=1) out;\n"
343 "layout(set = 0, binding = 1, std430) buffer Buffer1\n"
352 " result[gl_PrimitiveID] = temp_res;\n"
353 " if (gl_InvocationID == 0)\n"
355 " gl_TessLevelOuter[0] = 1.0f;\n"
356 " gl_TessLevelOuter[1] = 1.0f;\n"
358 " gl_out[gl_InvocationID].gl_Position = gl_in[gl_InvocationID].gl_Position;\n"
361 programCollection.glslSources.add("tesc")
362 << glu::TessellationControlSource(tesc) << vk::ShaderBuildOptions(programCollection.usedVulkanVersion, vk::SPIRV_VERSION_1_3, 0u);
368 "layout(isolines) in;\n"
369 "layout(set = 0, binding = 2, std430) buffer Buffer1\n"
378 " result[gl_PrimitiveID * 2 + uint(gl_TessCoord.x + 0.5)] = temp_res;\n"
379 " float pixelSize = 2.0f/1024.0f;\n"
380 " gl_Position = gl_in[0].gl_Position + gl_TessCoord.x * pixelSize / 2.0f;\n"
383 programCollection.glslSources.add("tese")
384 << glu::TessellationEvaluationSource(tese) << vk::ShaderBuildOptions(programCollection.usedVulkanVersion, vk::SPIRV_VERSION_1_3, 0u);
388 const string geometry =
390 "layout(${TOPOLOGY}) in;\n"
391 "layout(points, max_vertices = 1) out;\n"
392 "layout(set = 0, binding = 3, std430) buffer Buffer1\n"
401 " result[gl_PrimitiveIDIn] = temp_res;\n"
402 " gl_Position = gl_in[0].gl_Position;\n"
407 subgroups::addGeometryShadersFromTemplate(geometry, vk::ShaderBuildOptions(programCollection.usedVulkanVersion, vk::SPIRV_VERSION_1_3, 0u),
408 programCollection.glslSources);
411 const string fragment =
413 "layout(location = 0) out uint result;\n"
418 " result = temp_res;\n"
421 programCollection.glslSources.add("fragment")
422 << glu::FragmentSource(fragment)<< vk::ShaderBuildOptions(programCollection.usedVulkanVersion, vk::SPIRV_VERSION_1_3, 0u);
425 subgroups::addNoSubgroupShader(programCollection);
429 void supportedCheck (Context& context, CaseDefinition caseDef)
431 if (!subgroups::isSubgroupSupported(context))
432 TCU_THROW(NotSupportedError, "Subgroup operations are not supported");
434 switch (caseDef.opType)
437 case OPTYPE_SHUFFLE_XOR:
438 if (!subgroups::isSubgroupFeatureSupportedForDevice(context, VK_SUBGROUP_FEATURE_SHUFFLE_BIT))
440 TCU_THROW(NotSupportedError, "Device does not support subgroup shuffle operations");
444 if (!subgroups::isSubgroupFeatureSupportedForDevice(context, VK_SUBGROUP_FEATURE_SHUFFLE_RELATIVE_BIT))
446 TCU_THROW(NotSupportedError, "Device does not support subgroup shuffle relative operations");
451 if (subgroups::isDoubleFormat(caseDef.format) &&
452 !subgroups::isDoubleSupportedForDevice(context))
453 TCU_THROW(NotSupportedError, "Device does not support subgroup double operations");
456 tcu::TestStatus noSSBOtest (Context& context, const CaseDefinition caseDef)
458 if (!subgroups::areSubgroupOperationsSupportedForStage(
459 context, caseDef.shaderStage))
461 if (subgroups::areSubgroupOperationsRequiredForStage(
462 caseDef.shaderStage))
464 return tcu::TestStatus::fail(
466 subgroups::getShaderStageName(caseDef.shaderStage) +
467 " is required to support subgroup operations!");
471 TCU_THROW(NotSupportedError, "Device does not support subgroup operations for this stage");
475 subgroups::SSBOData inputData[2];
476 inputData[0].format = caseDef.format;
477 inputData[0].numElements = subgroups::maxSupportedSubgroupSize();
478 inputData[0].initializeType = subgroups::SSBOData::InitializeNonZero;
480 inputData[1].format = VK_FORMAT_R32_UINT;
481 inputData[1].numElements = inputData[0].numElements;
482 inputData[1].initializeType = subgroups::SSBOData::InitializeNonZero;
484 if (VK_SHADER_STAGE_VERTEX_BIT == caseDef.shaderStage)
485 return subgroups::makeVertexFrameBufferTest(context, VK_FORMAT_R32_UINT, inputData, 2, checkVertexPipelineStages);
486 else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage)
487 return subgroups::makeGeometryFrameBufferTest(context, VK_FORMAT_R32_UINT, inputData, 2, checkVertexPipelineStages);
488 else if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage)
489 return subgroups::makeTessellationEvaluationFrameBufferTest(context, VK_FORMAT_R32_UINT, inputData, 2, checkVertexPipelineStages, VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT);
490 else if (VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT == caseDef.shaderStage)
491 return subgroups::makeTessellationEvaluationFrameBufferTest(context, VK_FORMAT_R32_UINT, inputData, 2, checkVertexPipelineStages, VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT);
493 TCU_THROW(InternalError, "Unhandled shader stage");
497 tcu::TestStatus test(Context& context, const CaseDefinition caseDef)
499 switch (caseDef.opType)
502 case OPTYPE_SHUFFLE_XOR:
503 if (!subgroups::isSubgroupFeatureSupportedForDevice(context, VK_SUBGROUP_FEATURE_SHUFFLE_BIT))
505 TCU_THROW(NotSupportedError, "Device does not support subgroup shuffle operations");
509 if (!subgroups::isSubgroupFeatureSupportedForDevice(context, VK_SUBGROUP_FEATURE_SHUFFLE_RELATIVE_BIT))
511 TCU_THROW(NotSupportedError, "Device does not support subgroup shuffle relative operations");
516 if (subgroups::isDoubleFormat(caseDef.format) && !subgroups::isDoubleSupportedForDevice(context))
518 TCU_THROW(NotSupportedError, "Device does not support subgroup double operations");
521 if (VK_SHADER_STAGE_COMPUTE_BIT == caseDef.shaderStage)
523 if (!subgroups::areSubgroupOperationsSupportedForStage(context, caseDef.shaderStage))
525 return tcu::TestStatus::fail(
527 subgroups::getShaderStageName(caseDef.shaderStage) +
528 " is required to support subgroup operations!");
530 subgroups::SSBOData inputData[2];
531 inputData[0].format = caseDef.format;
532 inputData[0].numElements = subgroups::maxSupportedSubgroupSize();
533 inputData[0].initializeType = subgroups::SSBOData::InitializeNonZero;
535 inputData[1].format = VK_FORMAT_R32_UINT;
536 inputData[1].numElements = inputData[0].numElements;
537 inputData[1].initializeType = subgroups::SSBOData::InitializeNonZero;
539 return subgroups::makeComputeTest(context, VK_FORMAT_R32_UINT, inputData, 2, checkCompute);
544 VkPhysicalDeviceSubgroupProperties subgroupProperties;
545 subgroupProperties.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_PROPERTIES;
546 subgroupProperties.pNext = DE_NULL;
548 VkPhysicalDeviceProperties2 properties;
549 properties.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2;
550 properties.pNext = &subgroupProperties;
552 context.getInstanceInterface().getPhysicalDeviceProperties2(context.getPhysicalDevice(), &properties);
554 VkShaderStageFlagBits stages = (VkShaderStageFlagBits)(caseDef.shaderStage & subgroupProperties.supportedStages);
556 if (VK_SHADER_STAGE_FRAGMENT_BIT != stages && !subgroups::isVertexSSBOSupportedForDevice(context))
558 if ( (stages & VK_SHADER_STAGE_FRAGMENT_BIT) == 0)
559 TCU_THROW(NotSupportedError, "Device does not support vertex stage SSBO writes");
561 stages = VK_SHADER_STAGE_FRAGMENT_BIT;
564 if ((VkShaderStageFlagBits)0u == stages)
565 TCU_THROW(NotSupportedError, "Subgroup operations are not supported for any graphic shader");
567 subgroups::SSBOData inputData[2];
568 inputData[0].format = caseDef.format;
569 inputData[0].numElements = subgroups::maxSupportedSubgroupSize();
570 inputData[0].initializeType = subgroups::SSBOData::InitializeNonZero;
571 inputData[0].binding = 4u;
572 inputData[0].stages = stages;
574 inputData[1].format = VK_FORMAT_R32_UINT;
575 inputData[1].numElements = inputData[0].numElements;
576 inputData[1].initializeType = subgroups::SSBOData::InitializeNonZero;
577 inputData[1].binding = 5u;
578 inputData[1].stages = stages;
580 return subgroups::allStages(context, VK_FORMAT_R32_UINT, inputData, 2, checkVertexPipelineStages, stages);
589 tcu::TestCaseGroup* createSubgroupsShuffleTests(tcu::TestContext& testCtx)
592 de::MovePtr<tcu::TestCaseGroup> graphicGroup(new tcu::TestCaseGroup(
593 testCtx, "graphics", "Subgroup shuffle category tests: graphics"));
594 de::MovePtr<tcu::TestCaseGroup> computeGroup(new tcu::TestCaseGroup(
595 testCtx, "compute", "Subgroup shuffle category tests: compute"));
596 de::MovePtr<tcu::TestCaseGroup> framebufferGroup(new tcu::TestCaseGroup(
597 testCtx, "framebuffer", "Subgroup shuffle category tests: framebuffer"));
599 const VkFormat formats[] =
601 VK_FORMAT_R32_SINT, VK_FORMAT_R32G32_SINT, VK_FORMAT_R32G32B32_SINT,
602 VK_FORMAT_R32G32B32A32_SINT, VK_FORMAT_R32_UINT, VK_FORMAT_R32G32_UINT,
603 VK_FORMAT_R32G32B32_UINT, VK_FORMAT_R32G32B32A32_UINT,
604 VK_FORMAT_R32_SFLOAT, VK_FORMAT_R32G32_SFLOAT,
605 VK_FORMAT_R32G32B32_SFLOAT, VK_FORMAT_R32G32B32A32_SFLOAT,
606 VK_FORMAT_R64_SFLOAT, VK_FORMAT_R64G64_SFLOAT,
607 VK_FORMAT_R64G64B64_SFLOAT, VK_FORMAT_R64G64B64A64_SFLOAT,
608 VK_FORMAT_R8_USCALED, VK_FORMAT_R8G8_USCALED,
609 VK_FORMAT_R8G8B8_USCALED, VK_FORMAT_R8G8B8A8_USCALED,
612 const VkShaderStageFlags stages[] =
614 VK_SHADER_STAGE_VERTEX_BIT,
615 VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT,
616 VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT,
617 VK_SHADER_STAGE_GEOMETRY_BIT,
620 for (int formatIndex = 0; formatIndex < DE_LENGTH_OF_ARRAY(formats); ++formatIndex)
622 const VkFormat format = formats[formatIndex];
624 for (int opTypeIndex = 0; opTypeIndex < OPTYPE_LAST; ++opTypeIndex)
628 de::toLower(getOpTypeName(opTypeIndex)) +
629 "_" + subgroups::getFormatNameForGLSL(format);
632 const CaseDefinition caseDef =
635 VK_SHADER_STAGE_ALL_GRAPHICS,
638 addFunctionCaseWithPrograms(graphicGroup.get(), name, "", supportedCheck, initPrograms, test, caseDef);
642 const CaseDefinition caseDef = {opTypeIndex, VK_SHADER_STAGE_COMPUTE_BIT, format};
643 addFunctionCaseWithPrograms(computeGroup.get(), name, "", supportedCheck, initPrograms, test, caseDef);
646 for (int stageIndex = 0; stageIndex < DE_LENGTH_OF_ARRAY(stages); ++stageIndex)
648 const CaseDefinition caseDef = {opTypeIndex, stages[stageIndex], format};
649 addFunctionCaseWithPrograms(framebufferGroup.get(), name + "_" + getShaderStageName(caseDef.shaderStage), "",
650 supportedCheck, initFrameBufferPrograms, noSSBOtest, caseDef);
655 de::MovePtr<tcu::TestCaseGroup> group(new tcu::TestCaseGroup(
656 testCtx, "shuffle", "Subgroup shuffle category tests"));
658 group->addChild(graphicGroup.release());
659 group->addChild(computeGroup.release());
660 group->addChild(framebufferGroup.release());
662 return group.release();