Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2018-08-07
LOONGSON TECH CORP
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a graphics processing method and device to solve the problem of low practicability of AGAL based on Stage 3D technology because the graphics processing method in the prior art cannot directly execute AGAL through three-dimensional rendering by GPU, and save CPU resources , improving the flexibility of using Stage 3D technology

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Graphic processing method and device
  • Graphic processing method and device
  • Graphic processing method and device

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a graphics processing method and device. The graphics processing method provided by the present invention includes: reading the program code of the graphics assembly language AGAL, ​​the program code including the data information and instruction code of the AGAL; according to the corresponding relationship between the AGAL and the coloring language GLSL, converting the The program code of the above-mentioned AGAL is converted into the program code of GLSL for the graphics program interface OpenGL; the GLSL is executed by the graphics processor GPU. The embodiment of the present invention solves the problem that the graphics processing method in the prior art cannot directly execute the AGAL language through GPU for three-dimensional rendering, which leads to the low practicability of AGAL based on Stage 3D technology, and correspondingly improves the performance of Stage 3D technology. flexibility.

Description

technical field [0001] The invention relates to computer technology, in particular to a graphics processing method and device. Background technique [0002] With the wide application of computer technology, in order to meet the higher requirements of users for visual effects when using terminal equipment, the application of interactive vector graphics (Flash) three-dimensional (Three Dimensions, abbreviated as: 3D) in computers is also developing. , the efficiency of three-dimensional rendering by a central processing unit (Central Processing Unit, referred to as: CPU) is low, and only a simple 3D model can be completed. [0003] Current computer systems are all integrated with Graphic Processing Unit (GPU) to support hardware acceleration, so huge 3D calculations can be handed over to the GPU for execution, and only a few minutes are consumed in the process of processing Flash-based 3D programs. Complex 3D models can be made with less CPU resources; the GPU can usually sup...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/44
Inventor 何文松
Owner LOONGSON TECH CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products