Home
last modified time | relevance | path

Searched refs:program (Results 1 – 25 of 243) sorted by relevance

12345678910

/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/utils/
H A DShape.js85 program;
123 let program = gl.createProgram();
124 if (program === null) {
125 gl.deleteProgram(program);
130 gl.linkProgram(program);
133 gl.deleteProgram(program);
136 this.program = program;
141 this.program[item] = gl.getAttribLocation(program, item);
146 this.program[item] = gl.getUniformLocation(program, item);
154 this.program[item] = gl.getAttribLocation(this.program, item);
[all …]
H A DExtension.js44 let program = gl.createProgram();
45 if (program === null) {
46 gl.deleteProgram(program);
49 gl.attachShader(program, vShader);
51 gl.linkProgram(program);
54 gl.deleteProgram(program);
57 gl.useProgram(program);
58 gl.program = program;
63 program[item] = gl.getAttribLocation(program, item);
68 program[item] = gl.getUniformLocation(program, item);
[all …]
H A DPlaneShape.js122 if (!this.program) {
125 gl.useProgram(this.program);
130 gl.enableVertexAttribArray(this.program.a_Position);
134 gl.enableVertexAttribArray(this.program.a_Color);
142 gl.enableVertexAttribArray(this.program.a_Normal);
147 gl.uniform1f(this.program.alpha, this.alpha);
157 gl.uniform3fv(this.program.u_FogColor, Shape.fogColor);
158 gl.uniform2fv(this.program.u_FogDist, Shape.fog);
163 gl.uniform1i(this.program.v_UseTexture, 0);
168 gl.enableVertexAttribArray(this.program.a_TexCoord);
[all …]
H A DCubeShape.js249 if (!this.program) {
252 gl.useProgram(this.program);
257 gl.enableVertexAttribArray(this.program.a_Position);
261 gl.enableVertexAttribArray(this.program.a_Color);
269 gl.enableVertexAttribArray(this.program.a_Normal);
274 gl.uniform1f(this.program.alpha, this.alpha);
284 gl.uniform3fv(this.program.u_FogColor, Shape.fogColor);
285 gl.uniform2fv(this.program.u_FogDist, Shape.fog);
290 gl.uniform1i(this.program.v_UseTexture, 0);
295 gl.enableVertexAttribArray(this.program.a_TexCoord);
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/effect/test/unittest/
H A Dprogram_unittest.cpp40 auto program = std::make_shared<Program>(); variable
41 bool testResult = program != nullptr;
47 program->Compile(horizon->GetVertexShader(), horizon->GetFragmentShader());
63 auto program = std::make_shared<Program>(); variable
64 bool testResult = program != nullptr;
86 auto program = std::make_shared<Program>(); variable
87 bool testResult = program != nullptr;
109 auto program = std::make_shared<Program>(); variable
110 bool testResult = program != nullptr;
117 EXPECT_TRUE(program->programID_ >= 0);
[all …]
/ohos5.0/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/include/
H A Dgl32_entries.in5 CALL_HOOK_API(glAttachShader, program, shader)
8 CALL_HOOK_API(glBindAttribLocation, program, index, name)
91 HOOK_API_ENTRY(void, glDeleteProgram, GLuint program)
92 CALL_HOOK_API(glDeleteProgram, program)
113 CALL_HOOK_API(glDetachShader, program, shader)
254 CALL_HOOK_API_RET(glIsProgram, program)
268 HOOK_API_ENTRY(void, glLinkProgram, GLuint program)
269 CALL_HOOK_API(glLinkProgram, program)
391 HOOK_API_ENTRY(void, glUseProgram, GLuint program)
392 CALL_HOOK_API(glUseProgram, program)
[all …]
H A Dgl2ext_entries.in326 CALL_HOOK_API(glBindFragDataLocationEXT, program, color, name)
332 CALL_HOOK_API_RET(glGetFragDataIndexEXT, program, name)
608 CALL_HOOK_API(glActiveShaderProgramEXT, pipeline, program)
632 CALL_HOOK_API(glProgramParameteriEXT, program, pname, value)
635 CALL_HOOK_API(glProgramUniform1fEXT, program, location, v0)
641 CALL_HOOK_API(glProgramUniform1iEXT, program, location, v0)
698 CALL_HOOK_API(glProgramUniform1uiEXT, program, location, v0)
1073 CALL_HOOK_API(glGetUniformi64vNV, program, location, params)
1076 CALL_HOOK_API(glProgramUniform1i64NV, program, location, x)
1100 CALL_HOOK_API(glProgramUniform1ui64NV, program, location, x)
[all …]
H A Dgl2_entries.in5 CALL_HOOK_API(glAttachShader, program, shader)
8 CALL_HOOK_API(glBindAttribLocation, program, index, name)
91 HOOK_API_ENTRY(void, glDeleteProgram, GLuint program)
92 CALL_HOOK_API(glDeleteProgram, program)
113 CALL_HOOK_API(glDetachShader, program, shader)
254 CALL_HOOK_API_RET(glIsProgram, program)
268 HOOK_API_ENTRY(void, glLinkProgram, GLuint program)
269 CALL_HOOK_API(glLinkProgram, program)
391 HOOK_API_ENTRY(void, glUseProgram, GLuint program)
392 CALL_HOOK_API(glUseProgram, program)
[all …]
/ohos5.0/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/engine/graphics/
H A DXShader.js33 let program = 'program';
34 this.shaderFast = { program: this.initShader(shaderFastVs, shaderFastFs) }; property in XShader.initFastShader.shaderFast
37 this.shaderFast[program],
41 this.shaderFast[program],
45 this.shaderFast[program],
49 this.shaderFast[program],
53 this.shaderFast[program],
58 this.shaderFast[program],
65 this.shaderFast[program],
74 let program = 'program';
[all …]
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/
H A Dgpu_program_gles.cpp267 ProcessPushConstants(program, plat, flag, map); in ProcessProgram()
274 ProcessSamplers(program, plat, flag, map); in ProcessProgram()
533 if (plat_.program) { in ~GpuShaderProgramGLES()
535 device_.ReleaseProgram(plat_.program); in ~GpuShaderProgramGLES()
577 const GLuint program = static_cast<GLuint>(ret.plat_.program); in FilterInputs() local
657 if (ret->plat_.program == 0) { in Specialize()
724 if (plat_.program) { in ~GpuComputeProgramGLES()
726 device_.ReleaseProgram(plat_.program); in ~GpuComputeProgramGLES()
732 PLUGIN_ASSERT(plat_.program); in GetPlatformData()
760 PLUGIN_ASSERT(ret->plat_.program); in Specialize()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample/
H A Dcube_demo.js121 …gl.vertexAttribPointer(program.a_Position, 3, gl.FLOAT, false, Float32Array.BYTES_PER_ELEMENT * 8,…
122 gl.enableVertexAttribArray(program.a_Position);
124 gl.enableVertexAttribArray(program.a_TexCoord);
125 …gl.vertexAttribPointer(program.a_Normal, 3, gl.FLOAT, false, Float32Array.BYTES_PER_ELEMENT * 8, F…
126 gl.enableVertexAttribArray(program.a_Normal);
140 gl.uniform1i(program.u_Sampler, 0);
148 draw(program, gl);
151 function draw(program, gl) { argument
160 gl.uniformMatrix4fv(program.a_Matrix, false, mat.getElements());
163 gl.uniformMatrix4fv(program.u_NormalMatrix, false, normalMatrix.getElements());
[all …]
H A Dpanorama_demo.js49 …let program = createProgram(gl, VSCODE, FSCODE, ['a_Position', 'a_TexCoord'], ['u_MvpMatrix', 'u_M…
57 …gl.vertexAttribPointer(program.a_Position, 3, gl.FLOAT, false, FSIZE * 3, 0); //将缓冲区对象分配给一个attribu…
58 gl.enableVertexAttribArray(program.a_Position); //开启attribute变量(连接a_Position变量与分配给它的缓冲区对象
62 …gl.vertexAttribPointer(program.a_TexCoord, 2, gl.FLOAT, false, FSIZE * 2, 0); //将缓冲区对象分配给一个attribu…
63 gl.enableVertexAttribArray(program.a_TexCoord);
85 gl.uniform1i(program.u_Sampler, 0);
89 gl.uniformMatrix4fv(program.u_MvpMatrix, false, mvpMatrix.getElements());
90 draw(program, gl);
101 function draw(program, gl) { argument
104 gl.uniformMatrix4fv(program.u_ModelMatrix, false, modelMatrix.getElements());
[all …]
H A Dshadow_demo.js109 gl.useProgram(program); // 为常规绘制设置着色器
110 gl.uniform1i(program.u_ShadowMap, 0);
113 draw2(gl, program, triangle, matrixCamera, boxImage);
116 draw2(gl, program, plane, matrixCamera, floorImage);
125 function draw(gl, program, o, viewProjMatrix) { argument
126 initAttributeVariable(gl, program.a_Position, o.vertexBuffer);
127 if (program.a_Color != undefined) { // 如果a_Color定义为属性
138 function draw2(gl, program, o, viewProjMatrix, image) { argument
140 initAttributeVariable(gl, program.a_TexCoord, o.uvsBuffer);
145 gl.uniform1i(program.u_Sampler, 1);
[all …]
H A Dtexture_2d_demo.js49 …let program = createProgram(globalThis.gl, VS_CODE, FS_CODE, ['a_Matrix', 'a_Position', 'a_TexCoor…
57 …gl.vertexAttribPointer(program.a_Position, 2, gl.FLOAT, false, Float32Array.BYTES_PER_ELEMENT * 4,…
58 gl.enableVertexAttribArray(program.a_Position);
59 …gl.vertexAttribPointer(program.a_TexCoord, 2, gl.FLOAT, false, Float32Array.BYTES_PER_ELEMENT * 4,…
60 gl.enableVertexAttribArray(program.a_TexCoord);
75 gl.uniform1i(program.u_Sampler, 0);
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample2/
H A Dcube2_demo.js121 …gl.vertexAttribPointer(program.a_Position, 3, gl.FLOAT, false, Float32Array.BYTES_PER_ELEMENT * 8,…
122 gl.enableVertexAttribArray(program.a_Position);
124 gl.enableVertexAttribArray(program.a_TexCoord);
125 …gl.vertexAttribPointer(program.a_Normal, 3, gl.FLOAT, false, Float32Array.BYTES_PER_ELEMENT * 8, F…
126 gl.enableVertexAttribArray(program.a_Normal);
140 gl.uniform1i(program.u_Sampler, 0);
148 draw(program, gl);
151 function draw(program, gl) { argument
160 gl.uniformMatrix4fv(program.a_Matrix, false, mat.getElements());
163 gl.uniformMatrix4fv(program.u_NormalMatrix, false, normalMatrix.getElements());
[all …]
H A Dpanorama2_demo.js52 …let program = createProgram(gl, VSCODE, FSCODE, ['a_Position', 'a_TexCoord'], ['u_MvpMatrix', 'u_M…
60 …gl.vertexAttribPointer(program.a_Position, 3, gl.FLOAT, false, FSIZE * 3, 0); //将缓冲区对象分配给一个attribu…
61 gl.enableVertexAttribArray(program.a_Position); //开启attribute变量(连接a_Position变量与分配给它的缓冲区对象
65 …gl.vertexAttribPointer(program.a_TexCoord, 2, gl.FLOAT, false, FSIZE * 2, 0); //将缓冲区对象分配给一个attribu…
66 gl.enableVertexAttribArray(program.a_TexCoord);
88 gl.uniform1i(program.u_Sampler, 0);
92 gl.uniformMatrix4fv(program.u_MvpMatrix, false, mvpMatrix.getElements());
93 draw(program, gl);
104 function draw(program, gl) { argument
107 gl.uniformMatrix4fv(program.u_ModelMatrix, false, modelMatrix.getElements());
[all …]
H A Dshadow2_demo.js111 gl.useProgram(program); // 为常规绘制设置着色器
112 gl.uniform1i(program.u_ShadowMap, 0);
115 draw2(gl, program, triangle, matrixCamera, boxImage);
118 draw2(gl, program, plane, matrixCamera, floorImage);
127 function draw(gl, program, o, viewProjMatrix) { argument
128 initAttributeVariable(gl, program.a_Position, o.vertexBuffer);
129 if (program.a_Color != undefined) { // 如果a_Color定义为属性
140 function draw2(gl, program, o, viewProjMatrix, image) { argument
142 initAttributeVariable(gl, program.a_TexCoord, o.uvsBuffer);
147 gl.uniform1i(program.u_Sampler, 1);
[all …]
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/render_environment/graphic/
H A Dgl_utils.cpp172 unsigned int program = glCreateProgram(); in CreateProgram() local
173 if (program == 0) { in CreateProgram()
176 glAttachShader(program, vs); in CreateProgram()
177 glAttachShader(program, fs); in CreateProgram()
178 glLinkProgram(program); in CreateProgram()
181 glGetProgramiv(program, GL_LINK_STATUS, &status); in CreateProgram()
186 glDeleteProgram(program); in CreateProgram()
187 program = 0; in CreateProgram()
190 glDetachShader(program, vs); in CreateProgram()
194 glDetachShader(program, fs); in CreateProgram()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/opengl/test_eglCreateWindowSurface/entry/src/main/cpp/render/
H A Degl_core.cpp115 GLuint program = glCreateProgram(); in CreateProgram() local
116 if (program == PROGRAM_ERROR) { in CreateProgram()
123 glAttachShader(program, vertex); in CreateProgram()
124 glAttachShader(program, fragment); in CreateProgram()
125 glLinkProgram(program); in CreateProgram()
128 glGetProgramiv(program, GL_LINK_STATUS, &linked); in CreateProgram()
132 return program; in CreateProgram()
137 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &infoLen); in CreateProgram()
141 glGetProgramInfoLog(program, infoLen, nullptr, infoLog); in CreateProgram()
148 glDeleteProgram(program); in CreateProgram()
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/texture_encode/
H A Dimage_compressor.cpp1378 static CL_ASTC_STATUS SaveClBin(cl_program program, const std::string &clBinPath) in SaveClBin() argument
1396 …clRet = clGetProgramInfo(program, CL_PROGRAM_BINARIES, programBinarySizes, &programBinaries, NULL); in SaveClBin()
1422 static CL_ASTC_STATUS BuildProgramAndCreateKernel(cl_program program, ClAstcHandle *clAstcHandle) in BuildProgramAndCreateKernel() argument
1429 clAstcHandle->kernel = clCreateKernel(program, "AstcCl", &clRet); in BuildProgramAndCreateKernel()
1440 cl_program program = nullptr; in AstcClBuildProgram() local
1448 if (BuildProgramAndCreateKernel(program, clAstcHandle) != CL_ASTC_ENC_SUCCESS) { in AstcClBuildProgram()
1450 clReleaseProgram(program); in AstcClBuildProgram()
1453 if (SaveClBin(program, clBinPath) != CL_ASTC_ENC_SUCCESS) { in AstcClBuildProgram()
1472 if (BuildProgramAndCreateKernel(program, clAstcHandle) != CL_ASTC_ENC_SUCCESS) { in AstcClBuildProgram()
1474 clReleaseProgram(program); in AstcClBuildProgram()
[all …]
/ohos5.0/docs/zh-cn/application-dev/arkts-utils/
H A Darkts-bytecode-file-format.md66 …ramIndex](#linenumberprogramindex)结构中元素的数量,即文件中定义的[Line number program](#line-number-program)的数量。 |
352 …引 (LineNumberProgramIndex) 结构是一个数组,便于使用更紧凑的索引访问行号程序 ([Line number program](#line-number-program)) 。
363 …态机 ([State machine](#state-machine)) 的执行模型对行号程序 ([Line number program](#line-number-program))进行解释,…
375 …nenumberprogramindex)中的位置,该位置的值是一个指向[Line number program](#line-number-program)的偏移量。Line number pr…
395 #### Line number program
396 一个行号程序 (Line number program) 由指令组成。每条指令都包含一个字节的操作码以及可选参数。根据操作码的不同,参数的值可能被编码在指令中(称为指令参数),或者需要从常量池中获取…
/ohos5.0/docs/en/device-dev/quick-start/
H A Dquickstart-pkg-3516-running.md4 … directory of the source code to the **bin** directory, and run the Hello World program as follows:
15 2. Run the following command to run the **helloworld** program:
21 If the message "Hello World!" is displayed, the program runs successfully.
/ohos5.0/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/test/
H A Dopengl_wrapper_native_test.cpp111 GLuint program = glCreateProgram(); in CreateAndLinkProgram() local
113 glAttachShader(program, vert); in CreateAndLinkProgram()
114 glAttachShader(program, frag); in CreateAndLinkProgram()
115 glLinkProgram(program); in CreateAndLinkProgram()
117 glGetProgramiv(program, GL_LINK_STATUS, &status); in CreateAndLinkProgram()
123 return program; in CreateAndLinkProgram()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/effect/effectChain/src/
H A Dprogram.cpp67 void Program::CheckProgramLinkErrors(GLuint program) in CheckProgramLinkErrors() argument
71 glGetProgramiv(program, GL_LINK_STATUS, &complete); in CheckProgramLinkErrors()
73 glGetProgramInfoLog(program, INFO_LOG_LENGTH, nullptr, infoLog); in CheckProgramLinkErrors()
/ohos5.0/docs/en/device-dev/kernel/
H A Dkernel-small-bundles-linking.md25 …ry** in the ELF file of the application and runs the application. If the program is dynamically li…
31 ![](figures/program-execution-process.png "program-execution-process")
37 3. If there is no physical memory for mapping in the virtual memory region during program execution…
41 5. The program continues to run.
53 | Starting initialization| LOS_DoExecveFile | Executes the specified user program based on the inpu…

12345678910