Baseline Widely available
Hinweis: Diese Funktion ist in Web Workers verfügbar.
Die WebGLRenderingContext.isProgram()
-Methode der WebGL-API gibt true
zurück, wenn das übergebene WebGLProgram
gültig ist, andernfalls false
.
program
Ein WebGLProgram
, das überprüft werden soll.
Ein GLboolean
, das anzeigt, ob das Programm gültig ist oder nicht.
const canvas = document.getElementById("canvas");
const gl = canvas.getContext("webgl");
const program = gl.createProgram();
// â¦
gl.isProgram(program);
Spezifikationen Browser-Kompatibilität Siehe auch MDN-Feedback-Box War diese Ãbersetzung hilfreich?
Diese Seite wurde automatisch aus dem Englischen übersetzt.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4