Graphic processing method and device
A graphics processing and register technology, applied in the computer field, can solve problems such as low practicability and inability to directly execute AGAL
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0058] figure 1 It is a flowchart of a graphics processing method provided by Embodiment 1 of the present invention. The method provided in this embodiment is applicable to the case where the graphics processing of AGAL is executed by the GPU, and the method can be executed by a graphics processing device, which is usually implemented by hardware and / or software, and can be integrated in the memory of the terminal device In, for example, integrated in the processor chip, for the processor to call and execute. Such as figure 1 As shown, the method of this embodiment may include:
[0059] S110, read the program code of the AGAL, where the program code includes the data information and instruction code of the AGAL.
[0060] In the usual three-dimensional rendering technology, the GLSL based on OpenGL is executed by the GPU. The present embodiment takes the processing mode of the 3D image as an example for illustration. Two Dimensions (Two Dimensions, referred to as: 2D) imag...
Embodiment 2
[0068] figure 2 It is a flowchart of a graphics processing method provided by Embodiment 2 of the present invention. Such as figure 2 As shown, the method of this embodiment may include:
[0069] S210, read the program code of the AGAL, the program code includes the data information and the instruction code of the AGAL, wherein the instruction code includes a vertex shader statement and a fragment shader statement.
[0070] S220, obtain the corresponding register information according to the data information of AGAL, the register information includes the register type, index, and the coloring type of the register; specifically, the register type usually includes attribute registers, constant registers, temporary registers, output registers, variable registers and texture sampling registers.
[0071] S230. Perform vertex shader program conversion on the vertex shader statement according to the register information, and convert it into GLSL program code.
[0072] S24...
Embodiment 3
[0078] further, image 3 It is a flowchart of a graphics processing method provided by Embodiment 3 of the present invention. image 3 in the above figure 2 On the basis of the illustrated embodiment, generally, the shading type of the register obtained according to the data information of AGAL includes a vertex shader and a fragment shader; correspondingly, the specific manner for the conversion of the shading program can be: the conversion of the vertex shader program and fragment shader conversion.
[0079] In the actual implementation, the conversion of the vertex shader program can be summarized as the conversion of global variables, the conversion of local variables and the conversion of specific operations. That is, S230 may include: S231, converting the variability variables in registers and vertex shading statements whose shading type is a vertex shader into global variables corresponding to the vertex shading program of GLSL; S232, deriving the vertex according to t...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com