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
!886
tests: Add some basic tests for ConstantBuffer type.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
tests: Add some basic tests for ConstantBuffer type.
nsivov/vkd3d:cb_var
into
master
Overview
0
Commits
1
Pipelines
4
Changes
1
Merged
Nikolay Sivov
requested to merge
nsivov/vkd3d:cb_var
into
master
10 months ago
Overview
0
Commits
1
Pipelines
4
Changes
1
Expand
Signed-off-by: Nikolay Sivov
nsivov@codeweavers.com
Merge request reports
Compare
master
version 2
64095927
10 months ago
version 1
8c841ac9
10 months ago
master (base)
and
latest version
latest version
163aaf97
1 commit,
10 months ago
version 2
64095927
1 commit,
10 months ago
version 1
8c841ac9
1 commit,
10 months ago
1 file
+
89
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
tests/hlsl/cbuffer.shader_test
+
89
−
0
Options
@@ -860,3 +860,92 @@ uniform 12 float4 12.0 13.0 14.0 15.0
uniform 16 float4 16.0 17.0 18.0 19.0
todo(glsl) draw quad
probe all rgba (124.0, 135.0, 146.0, 150.5)
[require]
shader model >= 5.1
[pixel shader fail todo]
float4 ConstantBuffer;
float4 main() : sv_target
{
return ConstantBuffer;
}
[pixel shader fail]
struct s
{
float4 m;
};
float4 cb;
ConstantBuffer<s> cb;
float4 main() : sv_target
{
return 0;
}
[pixel shader fail(sm>=6) todo]
struct s
{
float4 m;
};
float4 main() : sv_target
{
// Local variable do not create resource definitions,
// acting like a constant
ConstantBuffer<s> cb = (s)1;
float4 var = 0.1f;
var += cb.m;
return var;
}
[test]
todo draw quad
probe all rgba (1.1, 1.1, 1.1, 1.1)
[pixel shader fail]
struct s
{
float4 m;
};
float4 main() : sv_target
{
ConstantBuffer<s> cb = (s)0;
cb.m = 1.0f;
return cb.m;
}
[pixel shader todo]
struct s
{
float4 m;
};
float4 var;
ConstantBuffer<s> cb[2][3] : register(b1);
cbuffer cb
{
float4 m2;
};
float4 main() : sv_target
{
return 0;
}
[require]
shader model >= 2.0
shader model < 5.1
[pixel shader]
float4 ConstantBuffer;
float4 main() : sv_target
{
return ConstantBuffer;
}
Loading