Invention Grant
- Patent Title: Optimizing compilation of shaders
-
Application No.: US16263778Application Date: 2019-01-31
-
Publication No.: US11379943B2Publication Date: 2022-07-05
- Inventor: Ivan Nevraev , Cole Brooking , J. Andrew Goossen , Eric Christoffersen , Jason Strayer
- Applicant: MICROSOFT TECHNOLOGY LICENSING, LLC
- Applicant Address: US WA Redmond
- Assignee: MICROSOFT TECHNOLOGY LICENSING, LLC
- Current Assignee: MICROSOFT TECHNOLOGY LICENSING, LLC
- Current Assignee Address: US WA Redmond
- Main IPC: G09G5/36
- IPC: G09G5/36 ; G06T1/20

Abstract:
To optimize the compilation of shaders for execution within an application, a computer system discovers the context in which the shaders are executed. The application is compiled and executed on a target platform. Snapshots of the application during execution are captured. A snapshot includes data and commands passed between the central processing unit and the graphics processing unit of the target platform to generate a single frame of graphics data. The shaders used in these snapshots are identified. These shaders are compiled with a number of different permutations of available compiler options, resulting in sets of differently compiled shaders. The snapshot is re-executed with the sets of differently compiled shaders, and performance is measured. The set of compiler options that results in compiled shaders providing better performance can be used as the set of compilation parameters for the set of shaders for this application.
Public/Granted literature
- US20190236750A1 OPTIMIZING COMPILATION OF SHADERS Public/Granted day:2019-08-01
Information query