SPV: Add OpSource shader source code and file name.
This commit is contained in:
parent
136b1e2d5d
commit
121853f4df
12 changed files with 243 additions and 22 deletions
22
Test/spv.debugInfo.frag
Normal file
22
Test/spv.debugInfo.frag
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#version 450
|
||||
|
||||
struct S {
|
||||
int a;
|
||||
};
|
||||
|
||||
uniform ubuf {
|
||||
S s;
|
||||
};
|
||||
|
||||
layout(location = 0) in vec4 inv;
|
||||
layout(location = 0) out vec4 outv;
|
||||
|
||||
void foo(S s)
|
||||
{
|
||||
outv = s.a * inv;
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
foo(s);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue