aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2016-01-24 18:37:59 +0100
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2016-01-24 17:39:57 +0000
commit7602d6b615cfaceec6a4a6a0b63f657ed4cf7d83 (patch)
tree2c9192a4c9ff43f6afa3c6b6df61161074fca65e /examples
parent9a95c33279cba9be6e34983c9a2bb1e6f300c2a3 (diff)
Link to MiniEngine in the mipmap shaderHEADmaster
Change-Id: I13942f90a7dd2b28c67cf77f2abe1bbc5fb499bf Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/hellogpumipmap/mipmapgen.hlsl3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/hellogpumipmap/mipmapgen.hlsl b/examples/hellogpumipmap/mipmapgen.hlsl
index 6793b53..3d63fee 100644
--- a/examples/hellogpumipmap/mipmapgen.hlsl
+++ b/examples/hellogpumipmap/mipmapgen.hlsl
@@ -1,3 +1,6 @@
+// This is basically a simplified (power-of-two only), deoptimized and thus more readable version of
+// https://github.com/Microsoft/DirectX-Graphics-Samples/blob/master/MiniEngine/Core/Shaders/GenerateMipsCS.hlsli
+
static const uint GROUP_DIM = 8; // 2 ^ (out_mip_count - 1)
Texture2D tex : register(t0);