WebGLRenderingContext.getAttribLocation - Web APIs
文章推薦指數: 80 %
The WebGLRenderingContext.getAttribLocation() method of the WebGL API returns the location of an attribute variable in a given WebGLProgram. WebGLRenderingContext.getAttribLocation() TheWebGLRenderingContext.getAttribLocation()methodoftheWebGLAPIreturnsthelocationofanattributevariableinagivenWebGLProgram. Syntax GLintgl.getAttribLocation(program,name); Parameters programAWebGLProgramcontainingtheattributevariable.nameADOMStringspecifyingthenameoftheattributevariablewhoselocationtoget. Returnvalue AGLintnumberindicatingthelocationofthevariablenameiffound.Returns-1otherwise. Examples gl.getAttribLocation(program,'vColor'); Specifications Specification WebGLSpecification(WebGL)#5.14.10 Browsercompatibility Desktop Mobile Chrome Edge Firefox InternetExplorer Opera Safari WebViewAndroid ChromeAndroid FirefoxforAndroid OperaAndroid SafarionIOS SamsungInternet getAttribLocation 9 12 4 11 12 5.1 ≤37 25 Yes 12 8 1.5 Seealso WebGLRenderingContext.getUniformLocation() ©2005–2021MDNcontributors.LicensedundertheCreativeCommonsAttribution-ShareAlikeLicensev2.5orlater. https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getAttribLocation
延伸文章資訊
- 1Webgl's getAttribLocation oddly returns -1 - Stack Overflow
How are layout qualifiers better than getAttribLocation in ...
- 2GL.GetAttribLocation Method (OpenTK.Graphics.ES20)
GetAttribLocation(UInt32, String). Important. This API is not CLS-compliant. C# 複製.
- 3WebGLRenderingContext.getAttribLocation() - Web APIs | MDN
The WebGLRenderingContext.getAttribLocation() method of the WebGL API returns the location of an ...
- 4WebGLRenderingContext.getAttribLocation() - Web API 接口 ...
WebGLRenderingContext.getAttribLocation() 方法返回了给定WebGLProgram对象中某属性的下标指向位置。
- 5glGetAttribLocation