Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Select the names of the WebGL routines which are used to write data from a JavaScript program to the GPU. Group of answer choices
1. Select the names of the WebGL routines which are used to write data from a JavaScript program to the GPU.
Group of answer choices
drawArrays
vertexAttribPointer
bufferData
bufferSubData
bindBuffer
2.
A WebGL program contains the line:
var a = gl.getAttribLocation(b, c);
Match each item with its best description as picture at the end based on this function call.
Function getAttribLocation:
Variable a:
Variable b:
Variable c:
[Choose] Receives value of specified vertex attribute variable Buffer size Pointer to attribute Shader variable name Gets access to vertex shader "out" variable Gets access to vertex shader "in" variable Gets access to vertex shader"uniform" variable Receives index of specified vertex attribute Buffer identifier Gets access to fragment shader "out" variable Shader program object Gets access to fragment shader "in" variableStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started