Skip to content

Commit

Permalink
internal/graphics: deprecated some built-in functions
Browse files Browse the repository at this point in the history
Updates #1870
  • Loading branch information
hajimehoshi committed Aug 28, 2023
1 parent db34930 commit 446a6dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/graphics/shader.go
Expand Up @@ -27,6 +27,8 @@ func shaderSuffix(unit shaderir.Unit) (string, error) {
var __imageDstTextureSize vec2
// imageSrcTextureSize returns the destination image's texture size in pixels.
//
// Deprecated: as of v2.6. Use the pixel-unit mode.
func imageDstTextureSize() vec2 {
return __imageDstTextureSize
}
Expand All @@ -36,6 +38,8 @@ var __imageSrcTextureSizes [%[1]d]vec2
// 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.
// 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 {
return __imageSrcTextureSizes[0]
}
Expand Down

0 comments on commit 446a6dc

Please sign in to comment.