From 7dd9e14a3ddf0f76ae378d05b5680fc86832f45a Mon Sep 17 00:00:00 2001 From: Gordon-F Date: Fri, 23 Jul 2021 20:18:16 +0300 Subject: [PATCH] Add note about sint array size in comment --- src/back/glsl/mod.rs | 2 +- src/back/hlsl/writer.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/back/glsl/mod.rs b/src/back/glsl/mod.rs index 5779fdcc6a..8b03644843 100644 --- a/src/back/glsl/mod.rs +++ b/src/back/glsl/mod.rs @@ -613,7 +613,7 @@ impl<'a, W: Write> Writer<'a, W> { // Write the array size // Writes nothing if `ArraySize::Dynamic` - // Panics if `ArraySize::Constant` has a constant that isn't an uint + // Panics if `ArraySize::Constant` has a constant that isn't an sint or uint match size { crate::ArraySize::Constant(const_handle) => { match self.module.constants[const_handle].inner { diff --git a/src/back/hlsl/writer.rs b/src/back/hlsl/writer.rs index a5d97e8817..09db95b485 100644 --- a/src/back/hlsl/writer.rs +++ b/src/back/hlsl/writer.rs @@ -499,7 +499,7 @@ impl<'a, W: Write> Writer<'a, W> { // Write the array size // Writes nothing if `ArraySize::Dynamic` - // Panics if `ArraySize::Constant` has a constant that isn't an uint + // Panics if `ArraySize::Constant` has a constant that isn't an sint or uint match size { crate::ArraySize::Constant(const_handle) => { match module.constants[const_handle].inner {