You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: include/nbl/builtin/hlsl/blit/parameters.hlsl
+32Lines changed: 32 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,38 @@ struct parameters_t
44
44
}
45
45
};
46
46
47
+
struct parameters2_t
48
+
{
49
+
float32_t3 fScale;
50
+
float32_t3 negativeSupportMinusHalf;
51
+
float32_t referenceAlpha;
52
+
uint32_t kernelWeightsOffsetY;
53
+
uint32_t kernelWeightsOffsetZ;
54
+
uint32_t inPixelCount;
55
+
uint32_t outPixelCount;
56
+
57
+
uint16_t3 inputDims;
58
+
uint16_t3 outputDims;
59
+
uint16_t3 windowDims;
60
+
uint16_t3 phaseCount;
61
+
uint16_t3 preloadRegion;
62
+
uint16_t3 iterationRegionXPrefixProducts;
63
+
uint16_t3 iterationRegionYPrefixProducts;
64
+
uint16_t3 iterationRegionZPrefixProducts;
65
+
66
+
//! Offset into the shared memory array which tells us from where the second buffer of shared memory begins
67
+
//! Given by max(memory_for_preload_region, memory_for_result_of_y_pass)
68
+
uint16_t secondScratchOffset;
69
+
uint16_t outputTexelsPerWGZ;
70
+
71
+
uint32_t3 getOutputTexelsPerWG()
72
+
{
73
+
//! `outputTexelsPerWG.xy` just happens to be in the first components of `iterationRegionsXPrefixProducts` and `iterationRegionYPrefixProducts` --this is
74
+
//! the result of how we choose to iterate, i.e. if, in the future, we decide to iterate differently, this needs to change.
0 commit comments