static pattern frame cache

This commit is contained in:
Dmitry Sergeev
2026-09-17 22:59:42 +03:00
parent 4d9485220a
commit f5df9506ce
3 changed files with 47 additions and 8 deletions
+6
View File
@@ -15,6 +15,7 @@ type PatternInfo struct {
type pattern struct {
PatternInfo
kernelSource string
dynamic bool
}
var patterns = map[string]pattern{
@@ -25,6 +26,7 @@ var patterns = map[string]pattern{
"ebu75-move": {
PatternInfo: PatternInfo{Name: "ebu75-move", Description: "EBU 75% Color Bar Signal with moving square"},
kernelSource: mustReadKernel("dynamic/ebu75.wgsl"),
dynamic: true,
},
"ebu100": {
PatternInfo: PatternInfo{Name: "ebu100", Description: "EBU 100% Color Bar Signal"},
@@ -33,6 +35,7 @@ var patterns = map[string]pattern{
"ebu100-move": {
PatternInfo: PatternInfo{Name: "ebu100-move", Description: "EBU 100% Color Bar Signal with moving square"},
kernelSource: mustReadKernel("dynamic/ebu100.wgsl"),
dynamic: true,
},
"smpte": {
PatternInfo: PatternInfo{Name: "smpte", Description: "SMPTE RP-219 Color Bar Signal"},
@@ -41,6 +44,7 @@ var patterns = map[string]pattern{
"smpte-move": {
PatternInfo: PatternInfo{Name: "smpte-move", Description: "SMPTE RP-219 Color Bar Signal with moving square"},
kernelSource: mustReadKernel("dynamic/smpteBars.wgsl"),
dynamic: true,
},
"gray-bars": {
PatternInfo: PatternInfo{Name: "gray-bars", Description: "13-step grayscale bars (Y 64..940)"},
@@ -49,6 +53,7 @@ var patterns = map[string]pattern{
"gray-bars-move": {
PatternInfo: PatternInfo{Name: "gray-bars-move", Description: "13-step grayscale bars (Y 64..940) with moving square"},
kernelSource: mustReadKernel("dynamic/yBars.wgsl"),
dynamic: true,
},
"gray-ramp": {
PatternInfo: PatternInfo{Name: "gray-ramp", Description: "Y gradient (black -> 100% white)"},
@@ -57,6 +62,7 @@ var patterns = map[string]pattern{
"gray-ramp-move": {
PatternInfo: PatternInfo{Name: "gray-ramp-move", Description: "Y gradient with moving square"},
kernelSource: mustReadKernel("dynamic/yRamp.wgsl"),
dynamic: true,
},
}