Support Uint to Int implicit conversions at #extension GL_ARB_gpu_shader5.
Signed-off-by: ZhiqianXia <xzq0528@outlook.com>
This commit is contained in:
parent
9158061398
commit
8cd85272ad
5 changed files with 75 additions and 1 deletions
11
Test/GL_ARB_gpu_shader5.u2i.vert
Normal file
11
Test/GL_ARB_gpu_shader5.u2i.vert
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#version 150
|
||||
#extension GL_ARB_gpu_shader5 : require
|
||||
|
||||
uniform int u1;
|
||||
uniform int u2;
|
||||
out vec4 result;
|
||||
void main()
|
||||
{
|
||||
uint v = 0;
|
||||
v = uint(u2) - u1; // implicit conversions
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue