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.
ImageTypeScreen
// ImageTypeVolatile is a volatile image that is cleared every frame.
ImageTypeVolatile
// ImageTypeUnmanaged is an unmanaged image that is not on an atlas.

View File

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