internal: add comments

This commit is contained in:
Hajime Hoshi 2024-09-07 23:24:55 +09:00
parent 46cf09197b
commit 4fa8265c58
2 changed files with 4 additions and 1 deletions

View File

@ -156,6 +156,7 @@ const (
// A screen image is also unmanaged. // A screen image is also unmanaged.
ImageTypeScreen ImageTypeScreen
// ImageTypeVolatile is a volatile image that is cleared every frame.
ImageTypeVolatile ImageTypeVolatile
// ImageTypeUnmanaged is an unmanaged image that is not on an atlas. // ImageTypeUnmanaged is an unmanaged image that is not on an atlas.

View File

@ -31,6 +31,8 @@ type Shader struct {
shader graphicsdriver.Shader shader graphicsdriver.Shader
ir *shaderir.Program ir *shaderir.Program
id int id int
// name is used only for logging.
name string name string
} }