Vulkan: Have desktop shaders respect precision qualifiers.
Sets highp defaults for the appropriate types, for all stages, and turns on precision qualifiers for non-ES shaders. Required fixing some qualifier orders for desktop built-in declarations for pre-420 shaders.
This commit is contained in:
@@ -7,76 +7,76 @@ Shader version: 450
|
||||
0:7 Function Parameters:
|
||||
0:9 Sequence
|
||||
0:9 Convert float to bool (temp bool)
|
||||
0:9 'scf1' (specialization-constant const float)
|
||||
0:9 'scf1' (specialization-constant const highp float)
|
||||
0:9 1.000000
|
||||
0:10 Construct bool (specialization-constant const bool)
|
||||
0:10 'scbt' (specialization-constant const bool)
|
||||
0:10 true (const bool)
|
||||
0:11 Convert int to bool (specialization-constant const bool)
|
||||
0:11 'sci2' (specialization-constant const int)
|
||||
0:11 'sci2' (specialization-constant const highp int)
|
||||
0:11 2 (const int)
|
||||
0:13 Construct float (temp float)
|
||||
0:13 'scf1' (specialization-constant const float)
|
||||
0:13 'scf1' (specialization-constant const highp float)
|
||||
0:13 1.000000
|
||||
0:14 Convert bool to float (temp float)
|
||||
0:14 'scbt' (specialization-constant const bool)
|
||||
0:14 true (const bool)
|
||||
0:15 Convert int to float (temp float)
|
||||
0:15 'sci2' (specialization-constant const int)
|
||||
0:15 'sci2' (specialization-constant const highp int)
|
||||
0:15 2 (const int)
|
||||
0:17 Convert float to int (temp int)
|
||||
0:17 'scf1' (specialization-constant const float)
|
||||
0:17 'scf1' (specialization-constant const highp float)
|
||||
0:17 1.000000
|
||||
0:18 Convert bool to int (specialization-constant const int)
|
||||
0:18 'scbt' (specialization-constant const bool)
|
||||
0:18 true (const bool)
|
||||
0:19 Construct int (specialization-constant const int)
|
||||
0:19 'sci2' (specialization-constant const int)
|
||||
0:19 'sci2' (specialization-constant const highp int)
|
||||
0:19 2 (const int)
|
||||
0:21 component-wise multiply (temp float)
|
||||
0:21 'scf1' (specialization-constant const float)
|
||||
0:21 component-wise multiply (temp highp float)
|
||||
0:21 'scf1' (specialization-constant const highp float)
|
||||
0:21 1.000000
|
||||
0:21 'scf1' (specialization-constant const float)
|
||||
0:21 'scf1' (specialization-constant const highp float)
|
||||
0:21 1.000000
|
||||
0:22 logical-or (specialization-constant const bool)
|
||||
0:22 'scbt' (specialization-constant const bool)
|
||||
0:22 true (const bool)
|
||||
0:22 'scbt' (specialization-constant const bool)
|
||||
0:22 true (const bool)
|
||||
0:23 component-wise multiply (specialization-constant const int)
|
||||
0:23 'sci2' (specialization-constant const int)
|
||||
0:23 component-wise multiply (specialization-constant const highp int)
|
||||
0:23 'sci2' (specialization-constant const highp int)
|
||||
0:23 2 (const int)
|
||||
0:23 'sci2' (specialization-constant const int)
|
||||
0:23 'sci2' (specialization-constant const highp int)
|
||||
0:23 2 (const int)
|
||||
0:24 add (temp float)
|
||||
0:24 'scf1' (specialization-constant const float)
|
||||
0:24 add (temp highp float)
|
||||
0:24 'scf1' (specialization-constant const highp float)
|
||||
0:24 1.000000
|
||||
0:24 Convert int to float (temp float)
|
||||
0:24 'sci2' (specialization-constant const int)
|
||||
0:24 Convert int to float (temp highp float)
|
||||
0:24 'sci2' (specialization-constant const highp int)
|
||||
0:24 2 (const int)
|
||||
0:26 Negate value (temp float)
|
||||
0:26 'scf1' (specialization-constant const float)
|
||||
0:26 Negate value (temp highp float)
|
||||
0:26 'scf1' (specialization-constant const highp float)
|
||||
0:26 1.000000
|
||||
0:27 Negate conditional (specialization-constant const bool)
|
||||
0:27 'scbt' (specialization-constant const bool)
|
||||
0:27 true (const bool)
|
||||
0:28 Negate value (specialization-constant const int)
|
||||
0:28 'sci2' (specialization-constant const int)
|
||||
0:28 Negate value (specialization-constant const highp int)
|
||||
0:28 'sci2' (specialization-constant const highp int)
|
||||
0:28 2 (const int)
|
||||
0:30 Compare Greater Than (temp bool)
|
||||
0:30 'scf1' (specialization-constant const float)
|
||||
0:30 'scf1' (specialization-constant const highp float)
|
||||
0:30 1.000000
|
||||
0:30 'scf1' (specialization-constant const float)
|
||||
0:30 'scf1' (specialization-constant const highp float)
|
||||
0:30 1.000000
|
||||
0:31 Compare Greater Than (specialization-constant const bool)
|
||||
0:31 'sci2' (specialization-constant const int)
|
||||
0:31 'sci2' (specialization-constant const highp int)
|
||||
0:31 2 (const int)
|
||||
0:31 'sci2' (specialization-constant const int)
|
||||
0:31 'sci2' (specialization-constant const highp int)
|
||||
0:31 2 (const int)
|
||||
0:33 Compare Not Equal (temp bool)
|
||||
0:33 'scf1' (specialization-constant const float)
|
||||
0:33 'scf1' (specialization-constant const highp float)
|
||||
0:33 1.000000
|
||||
0:33 'scf1' (specialization-constant const float)
|
||||
0:33 'scf1' (specialization-constant const highp float)
|
||||
0:33 1.000000
|
||||
0:34 Compare Not Equal (specialization-constant const bool)
|
||||
0:34 'scbt' (specialization-constant const bool)
|
||||
@@ -84,48 +84,48 @@ Shader version: 450
|
||||
0:34 'scbt' (specialization-constant const bool)
|
||||
0:34 true (const bool)
|
||||
0:35 Compare Not Equal (specialization-constant const bool)
|
||||
0:35 'sci2' (specialization-constant const int)
|
||||
0:35 'sci2' (specialization-constant const highp int)
|
||||
0:35 2 (const int)
|
||||
0:35 'sci2' (specialization-constant const int)
|
||||
0:35 'sci2' (specialization-constant const highp int)
|
||||
0:35 2 (const int)
|
||||
0:37 Construct ivec2 (specialization-constant const 2-component vector of int)
|
||||
0:37 'sci2' (specialization-constant const int)
|
||||
0:37 'sci2' (specialization-constant const highp int)
|
||||
0:37 2 (const int)
|
||||
0:37 'sci2' (specialization-constant const int)
|
||||
0:37 'sci2' (specialization-constant const highp int)
|
||||
0:37 2 (const int)
|
||||
0:38 Construct ivec2 (temp 2-element array of 2-component vector of int)
|
||||
0:38 Construct ivec2 (specialization-constant const 2-component vector of int)
|
||||
0:38 'sci2' (specialization-constant const int)
|
||||
0:38 'sci2' (specialization-constant const highp int)
|
||||
0:38 2 (const int)
|
||||
0:38 'sci2' (specialization-constant const int)
|
||||
0:38 'sci2' (specialization-constant const highp int)
|
||||
0:38 2 (const int)
|
||||
0:38 Construct ivec2 (specialization-constant const 2-component vector of int)
|
||||
0:38 'sci2' (specialization-constant const int)
|
||||
0:38 'sci2' (specialization-constant const highp int)
|
||||
0:38 2 (const int)
|
||||
0:38 'sci2' (specialization-constant const int)
|
||||
0:38 'sci2' (specialization-constant const highp int)
|
||||
0:38 2 (const int)
|
||||
0:40 Construct vec2 (temp 2-component vector of float)
|
||||
0:40 'scf1' (specialization-constant const float)
|
||||
0:40 'scf1' (specialization-constant const highp float)
|
||||
0:40 1.000000
|
||||
0:40 'scf1' (specialization-constant const float)
|
||||
0:40 'scf1' (specialization-constant const highp float)
|
||||
0:40 1.000000
|
||||
0:41 Construct vec2 (temp 2-element array of 2-component vector of float)
|
||||
0:41 Construct vec2 (temp 2-component vector of float)
|
||||
0:41 'scf1' (specialization-constant const float)
|
||||
0:41 'scf1' (specialization-constant const highp float)
|
||||
0:41 1.000000
|
||||
0:41 'scf1' (specialization-constant const float)
|
||||
0:41 'scf1' (specialization-constant const highp float)
|
||||
0:41 1.000000
|
||||
0:41 Construct vec2 (temp 2-component vector of float)
|
||||
0:41 'scf1' (specialization-constant const float)
|
||||
0:41 'scf1' (specialization-constant const highp float)
|
||||
0:41 1.000000
|
||||
0:41 'scf1' (specialization-constant const float)
|
||||
0:41 'scf1' (specialization-constant const highp float)
|
||||
0:41 1.000000
|
||||
0:? Linker Objects
|
||||
0:? 'scf1' (specialization-constant const float)
|
||||
0:? 'scf1' (specialization-constant const highp float)
|
||||
0:? 1.000000
|
||||
0:? 'scbt' (specialization-constant const bool)
|
||||
0:? true (const bool)
|
||||
0:? 'sci2' (specialization-constant const int)
|
||||
0:? 'sci2' (specialization-constant const highp int)
|
||||
0:? 2 (const int)
|
||||
|
||||
|
||||
@@ -138,76 +138,76 @@ Shader version: 450
|
||||
0:7 Function Parameters:
|
||||
0:9 Sequence
|
||||
0:9 Convert float to bool (temp bool)
|
||||
0:9 'scf1' (specialization-constant const float)
|
||||
0:9 'scf1' (specialization-constant const highp float)
|
||||
0:9 1.000000
|
||||
0:10 Construct bool (specialization-constant const bool)
|
||||
0:10 'scbt' (specialization-constant const bool)
|
||||
0:10 true (const bool)
|
||||
0:11 Convert int to bool (specialization-constant const bool)
|
||||
0:11 'sci2' (specialization-constant const int)
|
||||
0:11 'sci2' (specialization-constant const highp int)
|
||||
0:11 2 (const int)
|
||||
0:13 Construct float (temp float)
|
||||
0:13 'scf1' (specialization-constant const float)
|
||||
0:13 'scf1' (specialization-constant const highp float)
|
||||
0:13 1.000000
|
||||
0:14 Convert bool to float (temp float)
|
||||
0:14 'scbt' (specialization-constant const bool)
|
||||
0:14 true (const bool)
|
||||
0:15 Convert int to float (temp float)
|
||||
0:15 'sci2' (specialization-constant const int)
|
||||
0:15 'sci2' (specialization-constant const highp int)
|
||||
0:15 2 (const int)
|
||||
0:17 Convert float to int (temp int)
|
||||
0:17 'scf1' (specialization-constant const float)
|
||||
0:17 'scf1' (specialization-constant const highp float)
|
||||
0:17 1.000000
|
||||
0:18 Convert bool to int (specialization-constant const int)
|
||||
0:18 'scbt' (specialization-constant const bool)
|
||||
0:18 true (const bool)
|
||||
0:19 Construct int (specialization-constant const int)
|
||||
0:19 'sci2' (specialization-constant const int)
|
||||
0:19 'sci2' (specialization-constant const highp int)
|
||||
0:19 2 (const int)
|
||||
0:21 component-wise multiply (temp float)
|
||||
0:21 'scf1' (specialization-constant const float)
|
||||
0:21 component-wise multiply (temp highp float)
|
||||
0:21 'scf1' (specialization-constant const highp float)
|
||||
0:21 1.000000
|
||||
0:21 'scf1' (specialization-constant const float)
|
||||
0:21 'scf1' (specialization-constant const highp float)
|
||||
0:21 1.000000
|
||||
0:22 logical-or (specialization-constant const bool)
|
||||
0:22 'scbt' (specialization-constant const bool)
|
||||
0:22 true (const bool)
|
||||
0:22 'scbt' (specialization-constant const bool)
|
||||
0:22 true (const bool)
|
||||
0:23 component-wise multiply (specialization-constant const int)
|
||||
0:23 'sci2' (specialization-constant const int)
|
||||
0:23 component-wise multiply (specialization-constant const highp int)
|
||||
0:23 'sci2' (specialization-constant const highp int)
|
||||
0:23 2 (const int)
|
||||
0:23 'sci2' (specialization-constant const int)
|
||||
0:23 'sci2' (specialization-constant const highp int)
|
||||
0:23 2 (const int)
|
||||
0:24 add (temp float)
|
||||
0:24 'scf1' (specialization-constant const float)
|
||||
0:24 add (temp highp float)
|
||||
0:24 'scf1' (specialization-constant const highp float)
|
||||
0:24 1.000000
|
||||
0:24 Convert int to float (temp float)
|
||||
0:24 'sci2' (specialization-constant const int)
|
||||
0:24 Convert int to float (temp highp float)
|
||||
0:24 'sci2' (specialization-constant const highp int)
|
||||
0:24 2 (const int)
|
||||
0:26 Negate value (temp float)
|
||||
0:26 'scf1' (specialization-constant const float)
|
||||
0:26 Negate value (temp highp float)
|
||||
0:26 'scf1' (specialization-constant const highp float)
|
||||
0:26 1.000000
|
||||
0:27 Negate conditional (specialization-constant const bool)
|
||||
0:27 'scbt' (specialization-constant const bool)
|
||||
0:27 true (const bool)
|
||||
0:28 Negate value (specialization-constant const int)
|
||||
0:28 'sci2' (specialization-constant const int)
|
||||
0:28 Negate value (specialization-constant const highp int)
|
||||
0:28 'sci2' (specialization-constant const highp int)
|
||||
0:28 2 (const int)
|
||||
0:30 Compare Greater Than (temp bool)
|
||||
0:30 'scf1' (specialization-constant const float)
|
||||
0:30 'scf1' (specialization-constant const highp float)
|
||||
0:30 1.000000
|
||||
0:30 'scf1' (specialization-constant const float)
|
||||
0:30 'scf1' (specialization-constant const highp float)
|
||||
0:30 1.000000
|
||||
0:31 Compare Greater Than (specialization-constant const bool)
|
||||
0:31 'sci2' (specialization-constant const int)
|
||||
0:31 'sci2' (specialization-constant const highp int)
|
||||
0:31 2 (const int)
|
||||
0:31 'sci2' (specialization-constant const int)
|
||||
0:31 'sci2' (specialization-constant const highp int)
|
||||
0:31 2 (const int)
|
||||
0:33 Compare Not Equal (temp bool)
|
||||
0:33 'scf1' (specialization-constant const float)
|
||||
0:33 'scf1' (specialization-constant const highp float)
|
||||
0:33 1.000000
|
||||
0:33 'scf1' (specialization-constant const float)
|
||||
0:33 'scf1' (specialization-constant const highp float)
|
||||
0:33 1.000000
|
||||
0:34 Compare Not Equal (specialization-constant const bool)
|
||||
0:34 'scbt' (specialization-constant const bool)
|
||||
@@ -215,48 +215,48 @@ Shader version: 450
|
||||
0:34 'scbt' (specialization-constant const bool)
|
||||
0:34 true (const bool)
|
||||
0:35 Compare Not Equal (specialization-constant const bool)
|
||||
0:35 'sci2' (specialization-constant const int)
|
||||
0:35 'sci2' (specialization-constant const highp int)
|
||||
0:35 2 (const int)
|
||||
0:35 'sci2' (specialization-constant const int)
|
||||
0:35 'sci2' (specialization-constant const highp int)
|
||||
0:35 2 (const int)
|
||||
0:37 Construct ivec2 (specialization-constant const 2-component vector of int)
|
||||
0:37 'sci2' (specialization-constant const int)
|
||||
0:37 'sci2' (specialization-constant const highp int)
|
||||
0:37 2 (const int)
|
||||
0:37 'sci2' (specialization-constant const int)
|
||||
0:37 'sci2' (specialization-constant const highp int)
|
||||
0:37 2 (const int)
|
||||
0:38 Construct ivec2 (temp 2-element array of 2-component vector of int)
|
||||
0:38 Construct ivec2 (specialization-constant const 2-component vector of int)
|
||||
0:38 'sci2' (specialization-constant const int)
|
||||
0:38 'sci2' (specialization-constant const highp int)
|
||||
0:38 2 (const int)
|
||||
0:38 'sci2' (specialization-constant const int)
|
||||
0:38 'sci2' (specialization-constant const highp int)
|
||||
0:38 2 (const int)
|
||||
0:38 Construct ivec2 (specialization-constant const 2-component vector of int)
|
||||
0:38 'sci2' (specialization-constant const int)
|
||||
0:38 'sci2' (specialization-constant const highp int)
|
||||
0:38 2 (const int)
|
||||
0:38 'sci2' (specialization-constant const int)
|
||||
0:38 'sci2' (specialization-constant const highp int)
|
||||
0:38 2 (const int)
|
||||
0:40 Construct vec2 (temp 2-component vector of float)
|
||||
0:40 'scf1' (specialization-constant const float)
|
||||
0:40 'scf1' (specialization-constant const highp float)
|
||||
0:40 1.000000
|
||||
0:40 'scf1' (specialization-constant const float)
|
||||
0:40 'scf1' (specialization-constant const highp float)
|
||||
0:40 1.000000
|
||||
0:41 Construct vec2 (temp 2-element array of 2-component vector of float)
|
||||
0:41 Construct vec2 (temp 2-component vector of float)
|
||||
0:41 'scf1' (specialization-constant const float)
|
||||
0:41 'scf1' (specialization-constant const highp float)
|
||||
0:41 1.000000
|
||||
0:41 'scf1' (specialization-constant const float)
|
||||
0:41 'scf1' (specialization-constant const highp float)
|
||||
0:41 1.000000
|
||||
0:41 Construct vec2 (temp 2-component vector of float)
|
||||
0:41 'scf1' (specialization-constant const float)
|
||||
0:41 'scf1' (specialization-constant const highp float)
|
||||
0:41 1.000000
|
||||
0:41 'scf1' (specialization-constant const float)
|
||||
0:41 'scf1' (specialization-constant const highp float)
|
||||
0:41 1.000000
|
||||
0:? Linker Objects
|
||||
0:? 'scf1' (specialization-constant const float)
|
||||
0:? 'scf1' (specialization-constant const highp float)
|
||||
0:? 1.000000
|
||||
0:? 'scbt' (specialization-constant const bool)
|
||||
0:? true (const bool)
|
||||
0:? 'sci2' (specialization-constant const int)
|
||||
0:? 'sci2' (specialization-constant const highp int)
|
||||
0:? 2 (const int)
|
||||
|
||||
// Module Version 10000
|
||||
|
||||
Reference in New Issue
Block a user