Why are { } scraped out from string when they are passed into node ? #3258
Infinitusvoid
started this conversation in
General
Replies: 1 comment 1 reply
-
Is it your own node? Then turn off the
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When I pass into a node the :
#version 430
layout (local_size_x = 16, local_size_y = 16) in;
layout (binding = 0, rgba32f) uniform image2D img_output;
layout(std140, binding = 0) uniform UniformBlock {
float uniform_data;
} ubo;
void main()
{
ivec2 pixel_coords = ivec2(gl_GlobalInvocationID.xy);
vec4 color = vec4(pixel_coords.x / 800.0, pixel_coords.y / 600.0, 0.0, 1.0);
color.g = ubo.uniform_data; // Example of using the uniform data
imageStore(img_output, pixel_coords, color);
}
What I get in python code is :
#version 430
layout (local_size_x = 16, local_size_y = 16) in;
layout (binding = 0, rgba32f) uniform image2D img_output;
layout(std140, binding = 0) uniform UniformBlock
float uniform_data;
ubo;
void main()
screen shoots for example
Beta Was this translation helpful? Give feedback.
All reactions