diff options
Diffstat (limited to 'vendor/gioui.org/gpu/gl/types_js.go')
-rw-r--r-- | vendor/gioui.org/gpu/gl/types_js.go | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/vendor/gioui.org/gpu/gl/types_js.go b/vendor/gioui.org/gpu/gl/types_js.go deleted file mode 100644 index 16e3a71..0000000 --- a/vendor/gioui.org/gpu/gl/types_js.go +++ /dev/null @@ -1,29 +0,0 @@ -// SPDX-License-Identifier: Unlicense OR MIT - -package gl - -import "syscall/js" - -type ( - Buffer js.Value - Framebuffer js.Value - Program js.Value - Renderbuffer js.Value - Shader js.Value - Texture js.Value - Query js.Value - Uniform js.Value - Object js.Value -) - -func (p Program) valid() bool { - return !js.Value(p).IsUndefined() && !js.Value(p).IsNull() -} - -func (s Shader) valid() bool { - return !js.Value(s).IsUndefined() && !js.Value(s).IsNull() -} - -func (u Uniform) valid() bool { - return !js.Value(u).IsUndefined() && !js.Value(u).IsNull() -} |