mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Only declare half type if shaderFloat16 is supported
* Without this, the 16-bit storage only refers to ints (if that feature is available).
This commit is contained in:
@@ -3105,9 +3105,7 @@ OpBranch %_bottomlabel
|
||||
capabilities += "OpCapability Float64\n";
|
||||
}
|
||||
|
||||
if(float16Int8Features.shaderFloat16 || storage16Features.storageBuffer16BitAccess ||
|
||||
storage16Features.uniformAndStorageBuffer16BitAccess ||
|
||||
storage16Features.storagePushConstant16 || storage16Features.storageInputOutput16)
|
||||
if(float16Int8Features.shaderFloat16)
|
||||
{
|
||||
typesConstants += "%half = OpTypeFloat 16\n";
|
||||
capabilities += "OpCapability Float16\n";
|
||||
|
||||
Reference in New Issue
Block a user