Small nit.

This commit is contained in:
Hans-Kristian Arntzen 2024-07-15 11:53:20 +02:00 committed by GitHub
parent cb06c50eba
commit abed74fb9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9262,8 +9262,8 @@ void CompilerMSL::emit_instruction(const Instruction &instruction)
auto sampler_expr = to_sampler_expression(image_id); auto sampler_expr = to_sampler_expression(image_id);
auto *combined = maybe_get<SPIRCombinedImageSampler>(image_id); auto *combined = maybe_get<SPIRCombinedImageSampler>(image_id);
auto image_expr = combined ? to_expression(combined->image) : to_expression(image_id); auto image_expr = combined ? to_expression(combined->image) : to_expression(image_id);
const SPIRType& image_type = expression_type(image_id); const SPIRType &image_type = expression_type(image_id);
const SPIRType& coord_type = expression_type(coord_id); const SPIRType &coord_type = expression_type(coord_id);
switch (image_type.image.dim) switch (image_type.image.dim)
{ {