yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

ArielG-NVImplement 8.14-8.19 of OpenGL-GLSL specificationa697b2c67

master
600 B20 linesraw
1//TEST:SIMPLE(filecheck=CHECK_GLSL): -target glsl -stage fragment -entry main -allow-glsl
2//TEST:SIMPLE(filecheck=CHECK_SPV): -target spirv -emit-spirv-directly -stage fragment -entry main -allow-glsl
3#version 450
4// CHECK_SPV-DAG: error 31208
5// CHECK_GLSL-DAG: error 31208
6
7layout(location = 0) out ivec4 outColorActual;
8
9layout (location = 0) in float inDataV1;
10bool testFragmentProcessingInterpolateFunctions()
11{
12    float v = 1.0f;
13    return interpolateAtCentroid(v) != -1.0f;
14}
15
16void main() {
17    outColorActual = ivec4(true
18        && testFragmentProcessingInterpolateFunctions()
19        );
20}