internal/graphics: deprecated some built-in functions

Updates #1870
This commit is contained in:
Hajime Hoshi 2023-08-29 00:06:50 +09:00
parent db34930ae8
commit 446a6dc952

View File

@ -27,6 +27,8 @@ func shaderSuffix(unit shaderir.Unit) (string, error) {
var __imageDstTextureSize vec2 var __imageDstTextureSize vec2
// imageSrcTextureSize returns the destination image's texture size in pixels. // imageSrcTextureSize returns the destination image's texture size in pixels.
//
// Deprecated: as of v2.6. Use the pixel-unit mode.
func imageDstTextureSize() vec2 { func imageDstTextureSize() vec2 {
return __imageDstTextureSize return __imageDstTextureSize
} }
@ -36,6 +38,8 @@ var __imageSrcTextureSizes [%[1]d]vec2
// imageSrcTextureSize returns the 0th source image's texture size in pixels. // imageSrcTextureSize returns the 0th source image's texture size in pixels.
// As an image is a part of internal texture, the texture is usually bigger than the image. // As an image is a part of internal texture, the texture is usually bigger than the image.
// The texture's size is useful when you want to calculate pixels from texels in the texel mode. // The texture's size is useful when you want to calculate pixels from texels in the texel mode.
//
// Deprecated: as of v2.6. Use the pixel-unit mode.
func imageSrcTextureSize() vec2 { func imageSrcTextureSize() vec2 {
return __imageSrcTextureSizes[0] return __imageSrcTextureSizes[0]
} }