|
@@ -29,6 +29,11 @@ ShaderResourceGroupSemantic FloatBufferSemanticId
|
|
|
FrequencyId = 7;
|
|
|
};
|
|
|
|
|
|
+ShaderResourceGroup FloatBufferSrg : FloatBufferSemanticId
|
|
|
+{
|
|
|
+ StructuredBuffer<FloatBuffer> m_floatBuffer;
|
|
|
+};
|
|
|
+
|
|
|
ShaderResourceGroup ImageSrg : FrequencyPerScene
|
|
|
{
|
|
|
Sampler m_sampler
|
|
@@ -43,11 +48,6 @@ ShaderResourceGroup ImageSrg : FrequencyPerScene
|
|
|
Texture2D m_textureArray[];
|
|
|
}
|
|
|
|
|
|
-ShaderResourceGroup FloatBufferSrg : FloatBufferSemanticId
|
|
|
-{
|
|
|
- StructuredBuffer<FloatBuffer> m_floatBuffer;
|
|
|
-};
|
|
|
-
|
|
|
// Helper functions to read data from the FloatBuffer. The FloatBuffer is accessed with an offset and an index.
|
|
|
// The offset holds the initial offset within the FloatBuffer, and the index is a sub-index, which increments with each property that is being read.
|
|
|
// The data needs to be read in the same order as it is allocated on the host.
|