getMipmapRange.lua 718 B

123456789101112131415161718192021222324252627282930
  1. return {
  2. summary = 'Get the mipmap range of the Sampler.',
  3. description = [[
  4. Returns the mipmap range of the Sampler. This is used to clamp the range of mipmap levels that
  5. can be accessed from a texture.
  6. ]],
  7. arguments = {},
  8. returns = {
  9. min = {
  10. type = 'number',
  11. description = 'The minimum mipmap level that will be sampled (0 is the largest image).'
  12. },
  13. max = {
  14. type = 'number',
  15. description = 'The maximum mipmap level that will be sampled.'
  16. }
  17. },
  18. variants = {
  19. {
  20. arguments = {},
  21. returns = { 'min', 'max' }
  22. }
  23. },
  24. related = {
  25. 'Sampler:getFilter',
  26. 'Sampler:getWrap',
  27. 'Sampler:getCompareMode',
  28. 'Sampler:getAnisotropy'
  29. }
  30. }