Skip to main content
GameDev.net gamedev.net
Developer Blog

This is a developer's personal perspective or experience. Views expressed are those of the author.

PRO Tired of ads? Read GameDev.net ad-free and help keep the community independent with GameDev Pro — $3/month.

Catlike Coding Unity
Catlike Coding Unity Blog
· 2 weeks ago

Custom SRP 7.3 Raster Shadow Passes

Briefing

Catlike Coding Unity details a Custom SRP 7.3 update that shifts shadow rendering toward Unity’s raster render passes in 6000.5.8f1. The key change is architectural: directional shadow drawing is separated from resource setup and global GPU state, then the work is split into two passes so the draw pass can use raster rendering while the data pass still relies on unsafe buffer writes.

That split matters because Unity still lacks RasterCommandBuffer.SetBufferData, so the tutorial keeps a temporary unsafe path for uploading cascade and matrix data. Once that API lands in a supported Unity version, the extra unsafe pass can be removed and the whole shadow pipeline can be cleaner and more graph-friendly.

The implementation also updates how the atlas is handled. Instead of treating the shadow atlas like a generic texture use, the raster pass declares it as a render attachment depth target, marks it for clearing through TextureDesc.clearBuffer, and uses AccessFlags.Write so Unity can take the efficient clear path before rendering.

For engine programmers, the practical takeaway is that modern render graph attachment management can simplify shadow passes, but only if you respect the current API gaps. The tutorial also shows a useful pattern for incremental migration: isolate data setup, keep rendering logic narrow, and swap in raster passes where the backend already supports them.

“There is currently no RasterCommandBuffer.SetBufferData method.”

— Catlike Coding Unity · Explains why an unsafe pass is still required
At a glance
what
Custom SRP 7.3 moves shadow drawing to raster render passes and splits data upload into a separate unsafe pass.
who
Catlike Coding Unity, working with Unity 6000.5.8f1 and the Custom SRP tutorial series.
when
Published as part of the Custom SRP 7.3 tutorial update, following Custom SRP 7.2.
impact
Engine developers can adopt render-graph raster attachments for shadows while waiting for RasterCommandBuffer.SetBufferData.
Signal Mixed

Cleaner pipeline, but blocked by missing API support

Discuss

Follow Unity updates

See relevant stories in your personalized news feed.

Sign in to follow

Continue on GameDev.net

Useful next steps related to this story.

Game development news without the noise

One useful weekly briefing. No daily flood.

Sending your confirmation email…

Discussion

Loading comments...

Recommended resources

Unity: recommended books and gear

See full guide
Game Development Patterns with Unity 2021: Explore practical game development using software design patterns and best practices in Unity and C# cover

Game Development Patterns with Unity 2021: Explore practical game development using software design patterns and best practices in Unity and C#

Amazon · Book

As an Amazon Associate I earn from qualifying purchases.

2D Game Development with Unity cover

2D Game Development with Unity

Amazon · Book

As an Amazon Associate I earn from qualifying purchases.

Hands-On Unity 6 Game Development: Practical Projects to Learn C#, Game Mechanics, and Modern Tools for 2D, 3D, and VR Games cover

Hands-On Unity 6 Game Development: Practical Projects to Learn C#, Game Mechanics, and Modern Tools for 2D, 3D, and VR Games

Amazon · Book

A project-based Unity 6 guide that teaches C# scripting, core game mechanics, and modern tools through step-by-step builds. It is aimed at beginners or developers who want a practical refresher on making 2D, 3D, and VR games in Unity.

As an Amazon Associate I earn from qualifying purchases.

C# 14 and .NET 10 Game Development for Beginners: Build 2D Games, Learn Game Programming, and Create Interactive Projects Step by Step cover

C# 14 and .NET 10 Game Development for Beginners: Build 2D Games, Learn Game Programming, and Create Interactive Projects Step by Step

Amazon · Book

A beginner guide to learning C# and .NET by building simple 2D games and interactive projects. It is aimed at readers with no prior coding experience who want to learn programming through game development.

As an Amazon Associate I earn from qualifying purchases.

GameDev.net may earn a commission if you purchase through these links. This helps fund the site at no extra cost to you.