SPV: Implement new extensions GL_KHX_device_group and GL_KHX_multiview.
These correspond to SPV_KHR_device_group and SPV_KHR_multiview. Also, bring tests up to date with Khronos internals, and some misc. related changes.
This commit is contained in:
@@ -628,6 +628,16 @@ spv::BuiltIn TGlslangToSpvTraverser::TranslateBuiltInDecoration(glslang::TBuiltI
|
||||
return spv::BuiltInBaryCoordPullModelAMD;
|
||||
#endif
|
||||
|
||||
case glslang::EbvDeviceIndex:
|
||||
builder.addExtension(spv::E_SPV_KHR_device_group);
|
||||
builder.addCapability(spv::CapabilityDeviceGroup);
|
||||
return spv::BuiltinDeviceIndex;
|
||||
|
||||
case glslang::EbvViewIndex:
|
||||
builder.addExtension(spv::E_SPV_KHR_multiview);
|
||||
builder.addCapability(spv::CapabilityMultiView);
|
||||
return spv::BuiltinViewIndex;
|
||||
|
||||
#ifdef NV_EXTENSIONS
|
||||
case glslang::EbvViewportMaskNV:
|
||||
builder.addExtension(spv::E_SPV_NV_viewport_array2);
|
||||
|
||||
Reference in New Issue
Block a user