TextureFeature.lua 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. return {
  2. summary = 'Different ways Textures can be used.',
  3. description = [[
  4. These are the different ways `Texture` objects can be used. These are passed in to
  5. `lovr.graphics.isFormatSupported` to see which texture operations are supported by the GPU for a
  6. given format.
  7. ]],
  8. values = {
  9. {
  10. name = 'sample',
  11. description = [[
  12. The Texture can be sampled (e.g. a `texture2D` or `sampler2D` variable in shaders).
  13. ]]
  14. },
  15. {
  16. name = 'filter',
  17. description = 'The Texture can be used with a `Sampler` using a `FilterMode` of `linear`.'
  18. },
  19. {
  20. name = 'render',
  21. description = 'The Texture can be rendered to by using it as a target in a render `Pass`.'
  22. },
  23. {
  24. name = 'blend',
  25. description = 'Blending can be enabled when rendering to this format in a render pass.'
  26. },
  27. {
  28. name = 'storage',
  29. description = 'The Texture can be sent to an image variable in shaders (e.g. `image2D`).'
  30. },
  31. {
  32. name = 'atomic',
  33. description = 'Atomic operations can be used on storage textures with this format.'
  34. },
  35. {
  36. name = 'blitsrc',
  37. description = 'Source textures in `Pass:blit` can use this format.'
  38. },
  39. {
  40. name = 'blitdst',
  41. description = 'Destination textures in `Pass:blit` can use this format.'
  42. }
  43. }
  44. }