WebGLRenderingContext.getVertexAttribOffset - Web APIs

文章推薦指數: 80 %
投票人數:10人

The WebGLRenderingContext.getVertexAttribOffset() method of the WebGL API returns the address of a specified vertex attribute. WebGLRenderingContext.getVertexAttribOffset() TheWebGLRenderingContext.getVertexAttribOffset()methodoftheWebGLAPIreturnstheaddressofaspecifiedvertexattribute. Syntax GLintptrgl.getVertexAttribOffset(index,pname); Parameters indexAGLuintspecifyingtheindexofthevertexattribute.pnameAGLenumwhichmustbegl.VERTEX_ATTRIB_ARRAY_POINTER. Returnvalue AGLintptrindicatingtheaddressofthevertexattribute. Examples gl.getVertexAttribOffset(i,gl.VERTEX_ATTRIB_ARRAY_POINTER); Specifications Specification WebGLSpecification(WebGL)#5.14.10 Browsercompatibility Desktop Mobile Chrome Edge Firefox InternetExplorer Opera Safari WebViewAndroid ChromeAndroid FirefoxforAndroid OperaAndroid SafarionIOS SamsungInternet getVertexAttribOffset 9 12 4 11 12 5.1 ≤37 25 Yes 12 8 1.5 Seealso WebGLRenderingContext.vertexAttribPointer() ©2005–2021MDNcontributors.LicensedundertheCreativeCommonsAttribution-ShareAlikeLicensev2.5orlater. https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset



請為這篇文章評分?