isAttributeEnabled.lua 494 B

123456789101112131415161718192021
  1. return {
  2. summary = 'Check if a vertex attribute is enabled.',
  3. description = [[
  4. Returns whether or not a vertex attribute is enabled. Disabled attributes won't be sent to
  5. shaders.
  6. ]],
  7. arguments = {
  8. {
  9. name = 'attribute',
  10. type = 'string',
  11. description = 'The name of the attribute.'
  12. }
  13. },
  14. returns = {
  15. {
  16. name = 'enabled',
  17. type = 'boolean',
  18. description = 'Whether or not the attribute is enabled when drawing the Mesh.'
  19. }
  20. }
  21. }