The application discloses a
ray tracing method and device, a
graphics processing unit and
electronic equipment, relates to the field of
graphics processing technology, and is used for reducing the calculation load of intersection calculation of
ray information in an acceleration structure, improving the efficiency of
ray tracing, and reducing the
power consumption of a ray tracing device. The ray tracing method is applied to a ray tracing device, and the method comprises the following steps: acquiring image information from a
shader, wherein the image information comprises ray information and identification information, the identification information is used for indicating a starting node of intersection calculation of the ray information in the acceleration structure, the acceleration structure is created based on a scene where the ray information is located, and the starting node is any one node in the acceleration structure; starting from the starting node indicated by the identification information, performing intersection calculation on the ray information in the acceleration structure to obtain an intersection result; and sending the intersection result to the
shader, wherein the intersection result is used for generating a target image under the scene.