-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ Added Textures + Added Texturing + Added wic conversion code + Singel WIC conversion entry (for texture) - Removes reusing of previously compiled shaders (commented out)
- Loading branch information
Showing
16 changed files
with
241 additions
and
69 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
#include "demo.hlsli" | ||
#include "rs_demo.hlsl" | ||
|
||
// RS Constant | ||
const float4 myCFloat : register(b0); | ||
|
||
// Texture and sampler | ||
Texture2D<float4> texture : register(t0); | ||
sampler texSampler : register(s0); | ||
|
||
/// <summary> | ||
/// Pixel shader main function | ||
/// </summary> | ||
[RootSignature(ROOTSIG)] | ||
OM_PixelData main(in PS_VertexData vertexIp){ | ||
OM_PixelData psOut; | ||
|
||
psOut.color = float4(vertexIp.color, 1.0f); | ||
psOut.color = float4(texture.Sample(texSampler, vertexIp.uv).rgb * myCFloat.rgb , 1.0f); | ||
|
||
return psOut; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Subject files: | ||
- auge_512_512_BGR_24BPP.png | ||
- auge_1024_1024_BGR_24BPP.png | ||
- auge_2048_2048_BGR_24BPP.png | ||
|
||
WARNING: The textures are based on a part of the US-Doller bill. | ||
You have to make sure to comply all US laws regarding the | ||
Currency Image Use! | ||
|
||
Licensed under CC0 | ||
====================================================================== | ||
CC0 1.0 Universell (CC0 1.0) | ||
Public Domain Dedication | ||
https://creativecommons.org/publicdomain/zero/1.0/ | ||
https://creativecommons.org/publicdomain/zero/1.0/legalcode |
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.
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
Oops, something went wrong.