@@ -304,6 +304,11 @@ namespace EveryRay_Core
304
304
mGenerateMips2DRS ->InitDescriptorTable (this , 1 , { ER_RHI_DESCRIPTOR_RANGE_TYPE::ER_RHI_DESCRIPTOR_RANGE_TYPE_UAV }, { 0 }, { 1 });
305
305
mGenerateMips2DRS ->InitConstant (this , 2 , 0 , 3 );
306
306
mGenerateMips2DRS ->Finalize (this , " ER_RHI_GPURootSignature: Generate Mips 2D" );
307
+
308
+ InitializePSO (mGenerateMips2DPSOName , true );
309
+ SetRootSignatureToPSO (mGenerateMips2DPSOName , mGenerateMips2DRS , true );
310
+ SetShader (mGenerateMips2DCS );
311
+ FinalizePSO (mGenerateMips2DPSOName , true );
307
312
}
308
313
309
314
mGenerateMips3DRS = CreateRootSignature (3 , 1 );
@@ -314,6 +319,11 @@ namespace EveryRay_Core
314
319
mGenerateMips3DRS ->InitDescriptorTable (this , 1 , { ER_RHI_DESCRIPTOR_RANGE_TYPE::ER_RHI_DESCRIPTOR_RANGE_TYPE_UAV }, { 0 }, { 1 });
315
320
mGenerateMips3DRS ->InitConstant (this , 2 , 0 , 4 );
316
321
mGenerateMips3DRS ->Finalize (this , " ER_RHI_GPURootSignature: Generate Mips 3D" );
322
+
323
+ InitializePSO (mGenerateMips3DPSOName , true );
324
+ SetRootSignatureToPSO (mGenerateMips3DPSOName , mGenerateMips3DRS , true );
325
+ SetShader (mGenerateMips3DCS );
326
+ FinalizePSO (mGenerateMips3DPSOName , true );
317
327
}
318
328
}
319
329
0 commit comments