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
!218
Couldn't fetch the linked file.
vkd3d-shader: Implement GetDimensions().
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
vkd3d-shader: Implement GetDimensions().
nsivov/vkd3d:getdimensions2
into
master
Overview
29
Commits
4
Pipelines
1
Changes
7
3 unresolved threads
Hide all comments
Merged
Nikolay Sivov
requested to merge
nsivov/vkd3d:getdimensions2
into
master
1 year ago
Overview
29
Commits
4
Pipelines
1
Changes
1
3 unresolved threads
Hide all comments
Expand
Merge request reports
Compare
version 2
version 11
ed601742
1 year ago
version 10
904e93bf
1 year ago
version 9
ee5aeb97
1 year ago
version 8
5e98bc50
1 year ago
version 7
0359fdff
1 year ago
version 6
1fd5c0e1
1 year ago
version 5
b4cdbc1a
1 year ago
version 4
35176d7b
1 year ago
version 3
45d9b3c9
1 year ago
version 2
f440e7b0
1 year ago
version 1
c46e87f9
1 year ago
master (base)
and
version 3
latest version
bfdd5c14
4 commits,
1 year ago
version 11
ed601742
4 commits,
1 year ago
version 10
904e93bf
4 commits,
1 year ago
version 9
ee5aeb97
4 commits,
1 year ago
version 8
5e98bc50
4 commits,
1 year ago
version 7
0359fdff
4 commits,
1 year ago
version 6
1fd5c0e1
4 commits,
1 year ago
version 5
b4cdbc1a
4 commits,
1 year ago
version 4
35176d7b
4 commits,
1 year ago
version 3
45d9b3c9
1 commit,
1 year ago
version 2
f440e7b0
1 commit,
1 year ago
version 1
c46e87f9
1 commit,
1 year ago
Show latest version
1 file
+
3
−
13
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
tests/hlsl-getdimensions.shader_test
+
3
−
13
Options
[require]
shader model >=
5
.0
shader model >=
4
.0
[texture 0]
size (2, 3)
@@ -7,26 +7,16 @@ size (2, 3)
1.0 0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 0.0
1.0 0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 0.0
[texture 1]
size (4, 1)
levels 2
1.0 0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 0.0
1.0 0.0 1.0 0.0 1.0 0.0 1.0 0.0
[pixel shader]
Texture2D t0 : register(t0);
Texture1D t1 : register(t1);
float4 main() : sv_target
{
uint width, height;
float width2, number_levels;
t0.GetDimensions(width, height);
t1.GetDimensions(0, width2, number_levels);
return float4(width, height, width2, number_levels);
return float4(width, height, 0, 0);
}
[test]
draw quad
probe all rgba (2.0, 3.0,
4
.0,
2
.0)
probe all rgba (2.0, 3.0,
0
.0,
0
.0)
Loading