clear.lua 967 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. return {
  2. tag = 'buffer-transfer',
  3. summary = 'Clear data in the Buffer.',
  4. description = 'Clears a range of data in the Buffer to a value.',
  5. arguments = {
  6. offset = {
  7. type = 'number',
  8. default = '0',
  9. description = [[
  10. The offset of the range of the Buffer to clear, in bytes. Must be a multiple of 4.
  11. ]]
  12. },
  13. extent = {
  14. type = 'number',
  15. default = 'nil',
  16. description = [[
  17. The number of bytes to clear. If `nil`, clears to the end of the Buffer. Must be a
  18. multiple of 4.
  19. ]]
  20. },
  21. value = {
  22. type = 'number',
  23. default = '0x00000000',
  24. description = [[
  25. The value to clear to. This will be interpreted as a 32 bit number, which will be repeated
  26. across the clear range.
  27. ]]
  28. }
  29. },
  30. returns = {},
  31. variants = {
  32. {
  33. arguments = { 'offset', 'extent', 'value' },
  34. returns = {}
  35. }
  36. },
  37. related = {
  38. 'Texture:clear'
  39. }
  40. }