File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Gems/Atom/RHI/DX12/Code/Source/RHI Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -244,8 +244,16 @@ namespace AZ
244
244
245
245
// Check support of wive operation
246
246
D3D12_FEATURE_DATA_SHADER_MODEL shaderModel;
247
- GetDevice ()->CheckFeatureSupport (D3D12_FEATURE_SHADER_MODEL, &shaderModel, sizeof (shaderModel));
248
- m_features.m_waveOperation = shaderModel.HighestShaderModel >= D3D_SHADER_MODEL_6_0;
247
+ shaderModel.HighestShaderModel = D3D_SHADER_MODEL_6_0;
248
+ if (FAILED (GetDevice ()->CheckFeatureSupport (D3D12_FEATURE_SHADER_MODEL, &shaderModel, sizeof (shaderModel))))
249
+ {
250
+ AZ_Warning (" DX12" , false , " Failed to check feature D3D12_FEATURE_SHADER_MODEL" );
251
+ m_features.m_waveOperation = false ;
252
+ }
253
+ else
254
+ {
255
+ m_features.m_waveOperation = shaderModel.HighestShaderModel >= D3D_SHADER_MODEL_6_0;
256
+ }
249
257
250
258
#ifdef AZ_DX12_DXR_SUPPORT
251
259
D3D12_FEATURE_DATA_D3D12_OPTIONS5 options5;
You can’t perform that action at this time.
0 commit comments