Files
o3de/Gems/Terrain/Assets/Passes/TerrainMacroTextureComputePass.pass
jiaweig 1dd4898713 LYN-8551 Terrain: Renderer: Create compute pass for clipmaps (#7116)
* Allocate a pass that will be used to generate clipmap

Signed-off-by: jiaweig <51759646+jiaweig-amzn@users.noreply.github.com>

* Fix some small issues

Signed-off-by: jiaweig <51759646+jiaweig-amzn@users.noreply.github.com>

* Rename the pass to avoid future conflict. Move assets to terrain gem.

Signed-off-by: jiaweig <51759646+jiaweig-amzn@users.noreply.github.com>

* Turn the pass off

Signed-off-by: jiaweig <51759646+jiaweig-amzn@users.noreply.github.com>

* Move pass templates to Terrain gem

Signed-off-by: jiaweig <51759646+jiaweig-amzn@users.noreply.github.com>

* move load template to private

Signed-off-by: jiaweig <51759646+jiaweig-amzn@users.noreply.github.com>

* Add macro texture compute pass

Signed-off-by: jiaweig <51759646+jiaweig-amzn@users.noreply.github.com>

* Fix uncleaned code from previous commit

Signed-off-by: jiaweig <51759646+jiaweig-amzn@users.noreply.github.com>
2022-02-01 08:47:11 -06:00

53 lines
1.8 KiB
Plaintext

{
"Type": "JsonSerialization",
"Version": 1,
"ClassName": "PassAsset",
"ClassData": {
// Note: all the data here works as placeholders.
"PassTemplate": {
"Name": "TerrainMacroTextureComputePassTemplate",
"PassClass": "TerrainMacroTextureComputePass",
"Slots": [
{
"Name": "MacroTextureClipmapOutput",
"ShaderInputName": "m_macroTexClipmap",
"SlotType": "Output",
"ScopeAttachmentUsage": "Shader"
}
],
"ImageAttachments": [
{
"Name": "MacroTextureClipmap",
"ImageDescriptor": {
"Format": "R32G32B32A32_FLOAT",
"BindFlags": "3",
"SharedQueueMask": "1",
"Size": {
"Width": 1024,
"Height": 1024
}
}
}
],
"Connections": [
{
"LocalSlot": "MacroTextureClipmapOutput",
"AttachmentRef": {
"Pass": "This",
"Attachment": "MacroTextureClipmap"
}
}
],
"PassData": {
"$type": "Terrain::TerrainMacroTextureComputePassData",
"ShaderAsset": {
"FilePath": "Shaders/Terrain/TerrainMacroTextureComputePass.shader"
},
"Target Thread Count X": 1024,
"Target Thread Count Y": 1024,
"Target Thread Count Z": 1
}
}
}
}