@@ -53,8 +53,8 @@ enum class image_type : unsigned int {
5353};
5454// / image color space enum
5555enum class image_color_space : uint32_t {
56- linear = 0 ,
57- srgb = 1 ,
56+ linear = 0 ,
57+ srgb = 1 ,
5858};
5959// / A struct to describe the properties of an image.
6060struct image_descriptor {
@@ -66,7 +66,7 @@ struct image_descriptor {
6666 image_type type{image_type::standard};
6767 unsigned int num_levels{1 };
6868 unsigned int array_size{1 };
69- image_color_space color_space = image_color_space::linear;
69+ image_color_space color_space = image_color_space::linear;
7070 image_descriptor () = default ;
7171
7272 image_descriptor (range<1 > dims, unsigned int num_channels,
@@ -133,17 +133,16 @@ struct image_descriptor {
133133 " Images must have 1, 2, 3, or 4 channels." );
134134 }
135135 if (color_space == image_color_space::srgb) {
136- if (num_channels != 4 ) {
137- throw sycl::exception (
138- sycl::errc::invalid,
139- " sRGB color space requires num_channels == 4" );
140- }
141- if (channel_type != image_channel_type::unorm_int8) {
136+ if (num_channels != 4 ) {
137+ throw sycl::exception (sycl::errc::invalid,
138+ " sRGB color space requires num_channels == 4" );
139+ }
140+ if (channel_type != image_channel_type::unorm_int8) {
142141 throw sycl::exception (
143142 sycl::errc::invalid,
144143 " sRGB color space requires unorm_int8 channel type" );
144+ }
145145 }
146- }
147146 switch (this ->type ) {
148147 case image_type::standard:
149148 if (this ->array_size > 1 ) {
0 commit comments