GLSL icon indicating copy to clipboard operation
GLSL copied to clipboard

GL_EXT_null_initializer

Open alan-baker opened this issue 4 years ago • 3 comments

  • Adds a null initializer syntax (empty braces) that can be used to initialize variables
  • Allows shared variables to use null initializers

alan-baker avatar Jan 25 '21 16:01 alan-baker

How does this operate with Aliased smem, where you have multiple Workgroup declarations for the same memory? Would you put the zero initializer on just one of them?

seanbaxter avatar Feb 20 '21 20:02 seanbaxter

Yes, you only need the initializer on one of the variables. There are (or will be) CTS tests for that interaction.

alan-baker avatar Feb 22 '21 18:02 alan-baker

@alan-baker can you please address feedback so this can be merged?

dgkoch avatar Sep 27 '22 13:09 dgkoch