Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
vkd3d
Manage
Activity
Members
Labels
Plan
Wiki
Bugzilla
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wine
vkd3d
Merge requests
!688
tests/shader_runner: Set the SPIR-V feature flags based on the runner caps.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
tests/shader_runner: Set the SPIR-V feature flags based on the runner caps.
hverbeet/vkd3d:for_upstream_1
into
master
Overview
0
Commits
2
Pipelines
3
Changes
3
Merged
Henri Verbeet
requested to merge
hverbeet/vkd3d:for_upstream_1
into
master
1 year ago
Overview
0
Commits
2
Pipelines
3
Changes
3
Expand
Merge request reports
Compare
master
version 1
c95e200f
1 year ago
master (base)
and
latest version
latest version
5c637d68
2 commits,
1 year ago
version 1
c95e200f
2 commits,
1 year ago
3 files
+
26
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
tests/shader_runner.h
+
13
−
0
Options
@@ -23,6 +23,7 @@
#include
"vkd3d_d3d12.h"
#include
"vkd3d_dxgiformat.h"
#include
"vkd3d_common.h"
#include
"vkd3d_shader.h"
#include
"utils.h"
#define RENDER_TARGET_WIDTH 640
@@ -128,6 +129,18 @@ struct shader_runner_caps
bool
rov
;
};
static
inline
unsigned
int
shader_runner_caps_get_feature_flags
(
const
struct
shader_runner_caps
*
caps
)
{
unsigned
int
flags
=
0
;
if
(
caps
->
int64
)
flags
|=
VKD3D_SHADER_COMPILE_OPTION_FEATURE_INT64
;
if
(
caps
->
float64
)
flags
|=
VKD3D_SHADER_COMPILE_OPTION_FEATURE_FLOAT64
;
return
flags
;
}
struct
shader_runner
{
const
struct
shader_runner_ops
*
ops
;
Loading