-
Notifications
You must be signed in to change notification settings - Fork 0
148 lines (141 loc) · 6.99 KB
/
windows-direct3d12.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
name: Windows (Direct3D 12)
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Get Submodules
run: ./get_dlc
- name: Compile Shader
working-directory: Shader
run: ../Kinc/make windows -v vs2022 -g direct3d12 --option screenshot --debug --run
- name: Check Shader
working-directory: Shader
run: magick compare -metric mae .\reference.png .\Deployment\test.png difference.png
- name: Upload Shader failure image
if: failure()
uses: actions/upload-artifact@v4
with:
name: Shader image
path: Shader/Deployment/test.png
- name: Compile Texture
working-directory: Texture
run: ../Kinc/make windows -v vs2022 -g direct3d12 --option screenshot --debug --run
- name: Check Texture
working-directory: Texture
run: magick compare -metric mae .\reference.png .\Deployment\test.png difference.png
- name: Compile ComputeShader
working-directory: ComputeShader
run: ../Kinc/make windows -v vs2022 -g direct3d12 --option screenshot --debug --run
- name: Check ComputeShader
working-directory: ComputeShader
run: magick compare -metric mae .\reference.png .\Deployment\test.png difference.png
- name: Compile TextureArray
working-directory: TextureArray
run: ../Kinc/make windows -v vs2022 -g direct3d12 --option screenshot --debug --run
- name: Check TextureArray
working-directory: TextureArray
run: magick compare -metric mae .\reference.png .\Deployment\test.png difference.png
- name: Compile 00_empty
working-directory: 00_empty
run: ../Kinc/make windows -v vs2022 -g direct3d12 --option screenshot --debug --run
- name: Check 00_empty
working-directory: 00_empty
run: magick compare -metric mae .\reference.png .\Deployment\test.png difference.png
- name: Compile 01_triangle
working-directory: 01_triangle
run: ../Kinc/make windows -v vs2022 -g direct3d12 --option screenshot --debug --run
- name: Check 01_triangle
working-directory: 01_triangle
run: magick compare -metric mae .\reference.png .\Deployment\test.png difference.png
- name: Compile 02_matrix
working-directory: 02_matrix
run: ../Kinc/make windows -v vs2022 -g direct3d12 --option screenshot --debug --run
- name: Check 02_matrix
working-directory: 02_matrix
run: magick compare -metric mae .\reference.png .\Deployment\test.png difference.png
- name: Compile 03_colored_cube
working-directory: 03_colored_cube
run: ../Kinc/make windows -v vs2022 -g direct3d12 --option screenshot --debug --run
- name: Check 03_colored_cube
working-directory: 03_colored_cube
run: magick compare -metric mae .\reference.png .\Deployment\test.png difference.png
- name: Compile 04_textured_cube
working-directory: 04_textured_cube
run: ../Kinc/make windows -v vs2022 -g direct3d12 --option screenshot --debug --run
- name: Check 04_textured_cube
working-directory: 04_textured_cube
run: magick compare -metric mae .\reference.png .\Deployment\test.png difference.png
- name: Compile 05_camera_controls
working-directory: 05_camera_controls
run: ../Kinc/make windows -v vs2022 -g direct3d12 --option screenshot --debug --run
- name: Check 05_camera_controls
working-directory: 05_camera_controls
run: magick compare -metric mae .\reference.png .\Deployment\test.png difference.png
- name: Compile 06_render_targets
working-directory: 06_render_targets
run: ../Kinc/make windows -v vs2022 -g direct3d12 --option screenshot --debug --run
- name: Check 06_render_targets
working-directory: 06_render_targets
run: magick compare -metric mae .\reference.png .\Deployment\test.png difference.png
- name: Compile 07_multiple_render_targets
working-directory: 07_multiple_render_targets
run: ../Kinc/make windows -v vs2022 -g direct3d12 --option screenshot --debug --run
- name: Check 07_multiple_render_targets
working-directory: 07_multiple_render_targets
run: magick compare -metric mae .\reference.png .\Deployment\test.png difference.png
- name: Compile 08_float_render_targets
working-directory: 08_float_render_targets
run: ../Kinc/make windows -v vs2022 -g direct3d12 --option screenshot --debug --run
- name: Check 08_float_render_targets
working-directory: 08_float_render_targets
run: magick compare -metric mae .\reference.png .\Deployment\test.png difference.png
- name: Compile 09_depth_render_targets
working-directory: 09_depth_render_targets
run: ../Kinc/make windows -v vs2022 -g direct3d12 --option screenshot --debug --run
- name: Check 09_depth_render_targets
working-directory: 09_depth_render_targets
run: magick compare -metric mae .\reference.png .\Deployment\test.png difference.png
- name: Compile 10_cubemap
working-directory: 10_cubemap
run: ../Kinc/make windows -v vs2022 -g direct3d12 --option screenshot --debug --run
- name: Check 10_cubemap
working-directory: 10_cubemap
run: magick compare -metric mae .\reference.png .\Deployment\test.png difference.png
- name: Compile 11_instanced_rendering
working-directory: 11_instanced_rendering
run: ../Kinc/make windows -v vs2022 -g direct3d12 --option screenshot --debug --run
- name: Check 11_instanced_rendering
working-directory: 11_instanced_rendering
run: magick compare -metric mae .\reference.png .\Deployment\test.png difference.png
- name: Compile 12_set_render_target_depth
working-directory: 12_set_render_target_depth
run: ../Kinc/make windows -v vs2022 -g direct3d12 --option screenshot --debug --run
- name: Check 12_set_render_target_depth
working-directory: 12_set_render_target_depth
run: magick compare -metric mae .\reference.png .\Deployment\test.png difference.png
- name: Compile 13_generate_mipmaps
working-directory: 13_generate_mipmaps
run: ../Kinc/make windows -v vs2022 -g direct3d12 --option screenshot --debug --run
- name: Check 13_generate_mipmaps
working-directory: 13_generate_mipmaps
run: magick compare -metric mae .\reference.png .\Deployment\test.png difference.png
- name: Compile 14_set_mipmap
working-directory: 14_set_mipmap
run: ../Kinc/make windows -v vs2022 -g direct3d12 --option screenshot --debug --run
- name: Check 14_set_mipmap
working-directory: 14_set_mipmap
run: magick compare -metric mae .\reference.png .\Deployment\test.png difference.png
- name: Compile 15_deinterleaved_buffers
working-directory: 15_deinterleaved_buffers
run: ../Kinc/make windows -v vs2022 -g direct3d12 --option screenshot --debug --run
- name: Check 15_deinterleaved_buffers
working-directory: 15_deinterleaved_buffers
run: magick compare -metric mae .\reference.png .\Deployment\test.png difference.png