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:
parent
4a57dced66
commit
6c8aaacd28
18 changed files with 252 additions and 26 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue