Pure Texture to Sampled Texture Transform
Adds a transformation step to the post processing step. Two modes are available: 1) keep - Keeps samplers, textures and sampled textures as is 2) transform pure texture into sampled texture and remove pure samplers - removes all pure samplers - transforms all pure textures into its sampled counter part Change-Id: If54972e8052961db66c23f4b7e719d363cf6edbd
This commit is contained in:
13
Test/spv.texture.sampler.transform.frag
Normal file
13
Test/spv.texture.sampler.transform.frag
Normal file
@@ -0,0 +1,13 @@
|
||||
#version 440
|
||||
|
||||
uniform sampler smp;
|
||||
uniform texture2D tex;
|
||||
|
||||
in vec2 coord;
|
||||
|
||||
out vec4 color;
|
||||
|
||||
void main()
|
||||
{
|
||||
color = texture(sampler2D(tex, smp), coord);
|
||||
}
|
||||
Reference in New Issue
Block a user