Skip to content

Commit e9dc1f7

Browse files
authored
Platform/dx12/vfx rwbuffer fix (#3797)
* Use RWStructuredBuffer for strip data * Update CHANGELOG.md
1 parent e648cfa commit e9dc1f7

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

com.unity.visualeffectgraph/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
3636
- Remove some useless compilation triggers (modifying not connected or disabled nodes for instance)
3737
- Tidy up of platform abstraction code for random number generation, requires a dependency on com.unity.render-pipelines.core for those abstractions.
3838
- Fixed shader compilation errors with textures in shader graph [Case 1309219](https://issuetracker.unity3d.com/product/unity/issues/guid/1309219/)
39+
- Fixed issue with VFX using incorrect buffer type for strip data
3940

4041
## [11.0.0] - 2020-10-21
4142
### Added

com.unity.visualeffectgraph/Shaders/UpdateStrips.compute

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ CBUFFER_START(params)
1010
uint particlePerStripCount;
1111
CBUFFER_END
1212

13-
RWBuffer<uint> stripDataBuffer;
13+
RWStructuredBuffer<uint> stripDataBuffer;
1414

1515
#include "Packages/com.unity.visualeffectgraph/Shaders/VFXParticleStripCommon.hlsl"
1616

com.unity.visualeffectgraph/Shaders/VFXInit.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ ByteAddressBuffer inputAdditional;
3030
#endif
3131

3232
#if HAS_STRIPS
33-
RWBuffer<uint> stripDataBuffer;
33+
RWStructuredBuffer<uint> stripDataBuffer;
3434
#endif
3535

3636
${VFXPerPassInclude}

com.unity.visualeffectgraph/Shaders/VFXUpdate.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RWStructuredBuffer<uint> indirectBuffer;
1515
#endif
1616

1717
#if HAS_STRIPS
18-
RWBuffer<uint> stripDataBuffer;
18+
RWStructuredBuffer<uint> stripDataBuffer;
1919
#endif
2020

2121
#if VFX_USE_STRIPALIVE_CURRENT

0 commit comments

Comments
 (0)