-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update samples to use optimizedClearValue
- Loading branch information
Ravbug
committed
Jul 4, 2024
1 parent
3bd715e
commit acf7d96
Showing
13 changed files
with
44 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
#extension GL_EXT_nonuniform_qualifier : enable | ||
|
||
layout(binding = 0) uniform sampler g_sampler; | ||
layout(binding = 1) uniform texture2D textures[]; | ||
|
||
layout(location = 0) in vec2 uv; | ||
layout(location = 1) in flat uint instance; | ||
layout(location = 0) out vec4 outcolor; | ||
void main(){ | ||
|
||
outcolor = vec4(1,1,0,1); | ||
outcolor = vec4(texture(sampler2D(textures[instance], g_sampler),uv).rgb,1); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Submodule RGL
updated
15 files
+6 −0 | include/RGL/CommandBuffer.hpp | |
+4 −0 | include/RGL/Device.hpp | |
+1 −0 | include/RGL/Pipeline.hpp | |
+2 −0 | include/RGL/Texture.hpp | |
+11 −1 | src/D3D12CommandBuffer.cpp | |
+2 −0 | src/D3D12CommandBuffer.hpp | |
+14 −0 | src/D3D12Device.cpp | |
+2 −0 | src/D3D12Device.hpp | |
+5 −3 | src/D3D12RenderPipeline.cpp | |
+1 −1 | src/D3D12Texture.cpp | |
+1 −1 | src/RGLD3D12Common.cpp | |
+6 −0 | src/VkCommandBuffer.cpp | |
+2 −0 | src/VkCommandBuffer.hpp | |
+5 −0 | src/VkDevice.cpp | |
+2 −0 | src/VkDevice.hpp |