Quantcast
Channel: AMD Developer Forums: Message List - OpenGL & Vulkan
Viewing all articles
Browse latest Browse all 631

Re: Multisample resolve shader crash

$
0
0

hi cippyboy,

 

i tried following shader, can't reproduce your issue (use the shader to draw).

with R9 285 & HD7950 (tahiti)

 

// GLSL

#version 440 compatibility

out vec4 s_frag_color;

layout(rgba32f) uniform sampler2DMS image01;

uniform float numSamp;

void main()

{

vec4 v1 = vec4(0.0);

for (int i = 0; i < numSamp; i++)

{

    v1 += texelFetch(image01, ivec2(0,0), i);

}

  s_frag_color = v1;

}

// end of GLSL

 

 

thank you anyway.

 

regards

davy


Viewing all articles
Browse latest Browse all 631

Trending Articles