Some minor texture changes
This commit is contained in:
@@ -32,8 +32,7 @@ void TextureAsset::load(ArchiveBuffer& buffer) {
|
||||
KTX_ASSERT(
|
||||
ktxTexture_CreateFromMemory(ktxData.data(), ktxData.size(), KTX_TEXTURE_CREATE_LOAD_IMAGE_DATA_BIT, (ktxTexture**)&ktxHandle));
|
||||
|
||||
ktxTexture2_TranscodeBasis(ktxHandle, KTX_TTF_RGBA32, 0);
|
||||
// ktxTexture2_DeflateZstd(ktxHandle, 0);
|
||||
ktxTexture2_TranscodeBasis(ktxHandle, KTX_TTF_BC7_RGBA, 0);
|
||||
|
||||
Gfx::PGraphics graphics = buffer.getGraphics();
|
||||
TextureCreateInfo createInfo = {
|
||||
|
||||
@@ -131,7 +131,18 @@ void RayTracingPass::render() {
|
||||
}
|
||||
}
|
||||
pipeline = graphics->createRayTracingPipeline(Gfx::RayTracingPipelineCreateInfo{
|
||||
.pipelineLayout = pipelineLayout, .rayGenGroup = {.shader = rayGen}, .hitGroups = callableGroups, .missGroups = {{.shader = miss}},
|
||||
.pipelineLayout = pipelineLayout,
|
||||
.rayGenGroup =
|
||||
{
|
||||
.shader = rayGen,
|
||||
},
|
||||
.hitGroups = callableGroups,
|
||||
.missGroups =
|
||||
{
|
||||
{
|
||||
.shader = miss,
|
||||
},
|
||||
},
|
||||
//.callableGroups = callableGroups,
|
||||
});
|
||||
tlas = graphics->createTopLevelAccelerationStructure(Gfx::TopLevelASCreateInfo{
|
||||
|
||||
Reference in New Issue
Block a user