spirv: Add support for the StorageBuffer storage class

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
Jason Ekstrand 2017-05-16 08:34:50 -07:00
parent 2dd4e2ece3
commit 999918bd01
1 changed files with 4 additions and 0 deletions

View File

@ -1405,6 +1405,10 @@ vtn_storage_class_to_mode(SpvStorageClass class,
assert(!"Invalid uniform variable type");
}
break;
case SpvStorageClassStorageBuffer:
mode = vtn_variable_mode_ssbo;
nir_mode = 0;
break;
case SpvStorageClassUniformConstant:
if (glsl_type_is_image(interface_type->type)) {
mode = vtn_variable_mode_image;