Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 6 additions & 14 deletions native/cocos/renderer/pipeline/custom/FGDispatcherTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,16 @@ struct Range {
uint32_t planeSlice{0xFFFFFFFF};
};

struct ResourceAccessDesc {
bool external{false};
uint32_t resourceID{0xFFFFFFFF};
struct AccessStatus {
uint32_t vertID{0xFFFFFFFF};
gfx::ShaderStageFlagBit visibility{gfx::ShaderStageFlagBit::NONE};
gfx::MemoryAccessBit access{gfx::MemoryAccessBit::NONE};
PassType passType{PassType::RASTER};
Range range;
};

struct ResourceAccessNode {
PassType passType{PassType::RASTER};
std::vector<ResourceAccessDesc> attachemntStatus;
std::vector<AccessStatus> attachemntStatus;
};

struct ResourceAccessGraph {
Expand Down Expand Up @@ -205,15 +204,8 @@ struct ResourceAccessGraph {

struct Barrier {
RenderGraph::vertex_descriptor resourceID{0xFFFFFFFF};
RenderGraph::vertex_descriptor from{0xFFFFFFFF};
RenderGraph::vertex_descriptor to{0xFFFFFFFF};
gfx::ShaderStageFlagBit beginVisibility{gfx::ShaderStageFlagBit::NONE};
gfx::ShaderStageFlagBit endVisibility{gfx::ShaderStageFlagBit::NONE};
gfx::MemoryAccessBit beginAccess{gfx::MemoryAccessBit::NONE};
gfx::MemoryAccessBit endAccess{gfx::MemoryAccessBit::NONE};
PassType passType{PassType::RASTER};
Range fromRange;
Range toRange;
AccessStatus beginStatus;
AccessStatus endStatus;
};

struct BarrierNode {
Expand Down
Loading