Fix #1720: Give an error for parameter mismatched image format.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#version 310 es
|
||||
|
||||
readonly coherent uniform layout(set = 0, binding = 0, rgba32f) highp image2D image1;
|
||||
readonly uniform layout(set = 0, binding = 2, rgba16f) highp image2D image2;
|
||||
// readonly coherent uniform layout(set = 0, binding = 0) highp image2D image1;
|
||||
// readonly uniform layout(set = 0, binding = 2) highp image2D image2;
|
||||
writeonly coherent uniform layout(set = 0, binding = 1, rgba32f) highp image2D image3;
|
||||
writeonly uniform layout(set = 0, binding = 3, rgba16f) highp image2D image4;
|
||||
|
||||
@@ -20,8 +20,8 @@ void image_store(writeonly coherent highp image2D image, highp ivec2 coords, hig
|
||||
|
||||
void main()
|
||||
{
|
||||
highp vec4 read1 = image_load(image1, in_coords);
|
||||
highp vec4 read2 = image_load(image2, in_coords);
|
||||
highp vec4 read1 = vec4(0.4); // = image_load(image1, in_coords);
|
||||
highp vec4 read2 = vec4(0.5); // = image_load(image2, in_coords);
|
||||
|
||||
image_store(image3, in_coords, read1*0.5);
|
||||
image_store(image4, in_coords, read2*2.0);
|
||||
|
||||
Reference in New Issue
Block a user