Shading Process Compiler Bitwise OR Code Generation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional compilers for 3D computer graphics shading processes consume excessive computational power due to the use of condition branches for distinguishing operations, arguments, and modifiers.

Innovation Solution

A method and system for generating hardware machine code by performing a bitwise OR operation between operation mapping code, argument mapping code, and modifier mapping code, where each code type has the same length and stores information in specific bit ranges, reducing unnecessary computational overhead.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If condition branches are used to distinguish operations, arguments and modifiers in conventional compilers, then the compiler can process different shading operations, but the computational power consumption increases excessively

Engineering Contradiction:
Improvecompiler's ability to distinguish and process different shading operationsVSAvoidcomputational power consumption
Core Design Contradiction:
Adaptability or versatilityVSUse of energy by moving object

Solution Approach 1:

The hardware machine code is segmented into distinct bit ranges: first bit range for operation codes, second bit range for argument codes, and third bit range for modifier codes. Each segment is independently encoded and then combined through bitwise OR, allowing the system to distinguish different shading operations without using computationally expensive condition branches.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent replaces the conventional mechanical approach of using condition branches (if-then-else statements) with a bitwise operation-based system. Instead of evaluating multiple conditions to determine operations, arguments, and modifiers, the system uses bitwise OR to combine pre-encoded mapping codes, significantly reducing computational overhead while maintaining the same functionality.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

2Adaptability or versatility

If condition branches are used to distinguish operations, arguments and modifiers, then the compiler can handle various shading process requirements, but the overall system complexity increases

Engineering Contradiction:
Improvecompiler's ability to handle shading process requirementsVSAvoidcompiler structure complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The code structure is segmented into three independent parts: operation mapping code, argument mapping code, and modifier mapping code. Each part is stored in separate bit ranges and can be independently managed, simplifying the compiler's internal structure while maintaining versatility in handling different shading operations.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The hardware machine code format is designed to be universal, accommodating different operations, arguments, and modifiers within a single unified structure. The bitwise OR operation serves multiple purposes: combining operation codes, argument codes, and modifier codes into a single machine code word, thereby reducing structural complexity while maintaining multi-functionality.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS8601450B2Methods and systems for compiling a shading process of a 3D computer graphics
Publication Date: 2013.12.03 VIA TECH INC
  • US8601450B2 patent drawing
  • US8601450B2 patent drawing
  • US8601450B2 patent drawing

AI summary

A method for a 3D computer graphics shading process compiler, utilized to generate hardware machine code corresponding to a script is disclosed. The method includes the following steps. Operation mapping code indicating an operation of the script, and argument mapping code indicating an argument associated with the operation is provided. The hardware machine code is generated by performing a bitwise OR operation to the operation mapping code and the argument mapping code.