Skip to content

Commit

Permalink
Fix sample build error
Browse files Browse the repository at this point in the history
  • Loading branch information
ericjunwei committed Dec 8, 2023
1 parent cb54a5d commit d361234
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 68 deletions.
10 changes: 1 addition & 9 deletions SDKDoc/html/c__sync3_d_receive.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ <h2>Sample Path</h2>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#include &quot;SDK/ADLXHelper/Windows/C/ADLXHelper.h&quot;</span></div>
<div class="line"><span class="preprocessor">#include &quot;SDK/Include/I3DSettings.h&quot;</span></div>
<div class="line"><span class="preprocessor">#include &quot;SDK/Include/I3DSettings1.h&quot;</span></div>
<div class="line"><span class="preprocessor">#include &quot;conio.h&quot;</span></div>
<div class="line"> </div>
<div class="line"><span class="comment">// Block event to verify call back</span></div>
Expand All @@ -143,14 +142,7 @@ <h2>Sample Path</h2>
<div class="line"> <span class="comment">// Get the GPU interface</span></div>
<div class="line"> IADLXGPU* gpu = NULL;</div>
<div class="line"> p3DSettingsChangedEvent-&gt;pVtbl-&gt;GetGPU(p3DSettingsChangedEvent, &amp;gpu);</div>
<div class="line"> </div>
<div class="line"> IADLX3DSettingsChangedEvent1* p3DSettingsChangedEvent1 = NULL;</div>
<div class="line"> p3DSettingsChangedEvent-&gt;pVtbl-&gt;QueryInterface(p3DSettingsChangedEvent, IID_IADLX3DSettingsChangedEvent1(), &amp;p3DSettingsChangedEvent1);</div>
<div class="line"> <span class="keywordflow">if</span> (p3DSettingsChangedEvent1 == NULL)</div>
<div class="line"> {</div>
<div class="line"> printf(<span class="stringliteral">&quot;3DSettingsChangedEvent1 not supported\n&quot;</span>);</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line"> <span class="comment">//RadeonSuperResolution is a global feature (the GPU interface is NULL); skip printing its name</span></div>
<div class="line"> <span class="keywordflow">if</span> (!p3DSettingsChangedEvent-&gt;pVtbl-&gt;IsRadeonSuperResolutionChanged(p3DSettingsChangedEvent))</div>
<div class="line"> {</div>
Expand Down
8 changes: 0 additions & 8 deletions SDKDoc/html/cpp__sync3_d_receive.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ <h2>Sample Path</h2>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#include &quot;SDK/ADLXHelper/Windows/Cpp/ADLXHelper.h&quot;</span></div>
<div class="line"><span class="preprocessor">#include &quot;SDK/Include/I3DSettings.h&quot;</span></div>
<div class="line"><span class="preprocessor">#include &quot;SDK/Include/I3DSettings1.h&quot;</span></div>
<div class="line"><span class="preprocessor">#include &quot;conio.h&quot;</span></div>
<div class="line"><span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;string&gt;</span></div>
Expand Down Expand Up @@ -219,13 +218,6 @@ <h2>Sample Path</h2>
<div class="line"> <span class="comment">// Get 3DSettings service</span></div>
<div class="line"> IADLX3DSettingsServicesPtr d3dSettingSrv;</div>
<div class="line"> g_ADLXHelp.GetSystemServices()-&gt;Get3DSettingsServices(&amp;d3dSettingSrv);</div>
<div class="line"> IADLX3DSettingsServices1Ptr d3dSettingSrv1 (d3dSettingSrv);</div>
<div class="line"> </div>
<div class="line"> IADLX3DSettingsChangedEvent1Ptr p3DSettingsChangedEvent1(p3DSettingsChangedEvent);</div>
<div class="line"> <span class="keywordflow">if</span> (p3DSettingsChangedEvent1 == <span class="keyword">nullptr</span>)</div>
<div class="line"> {</div>
<div class="line"> std::cout &lt;&lt; <span class="stringliteral">&quot;3DSettingsChangedEvent1 not supported&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Get the GPU interface</span></div>
<div class="line"> IADLXGPUPtr gpu;</div>
Expand Down
6 changes: 3 additions & 3 deletions SDKDoc/xml/_a_d_l_x_defines_8h.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
<includes local="no">stdio.h</includes>
<includes local="no">stdint.h</includes>
<includes refid="_a_d_l_x_version_8h" local="yes">ADLXVersion.h</includes>
<includedby refid="_a_d_l_x_structures_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/ADLXStructures.h</includedby>
<includedby refid="_i_changed_event_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IChangedEvent.h</includedby>
<includedby refid="_i_collections_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/ICollections.h</includedby>
<includedby refid="_a_d_l_x_structures_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/ADLXStructures.h</includedby>
<includedby refid="_a_d_l_x_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/ADLX.h</includedby>
<includedby refid="_i_display3_d_l_u_t_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDisplay3DLUT.h</includedby>
<includedby refid="_i_i2_c_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/II2C.h</includedby>
<includedby refid="_i_log_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/ILog.h</includedby>
<includedby refid="_i_i2_c_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/II2C.h</includedby>
<includedby refid="_i_system_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/ISystem.h</includedby>
<includedby refid="_a_d_l_x_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/ADLX.h</includedby>
<incdepgraph>
<node id="4">
<label>stdint.h</label>
Expand Down
18 changes: 9 additions & 9 deletions SDKDoc/xml/_a_d_l_x_structures_8h.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@
<compounddef id="_a_d_l_x_structures_8h" kind="file" language="C++">
<compoundname>ADLXStructures.h</compoundname>
<includes refid="_a_d_l_x_defines_8h" local="yes">ADLXDefines.h</includes>
<includedby refid="_i_g_p_u_auto_tuning_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUAutoTuning.h</includedby>
<includedby refid="_i_g_p_u_manual_power_tuning_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUManualPowerTuning.h</includedby>
<includedby refid="_i_g_p_u_manual_g_f_x_tuning_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUManualGFXTuning.h</includedby>
<includedby refid="_i3_d_settings_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/I3DSettings.h</includedby>
<includedby refid="_i_desktops_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDesktops.h</includedby>
<includedby refid="_i_display3_d_l_u_t_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDisplay3DLUT.h</includedby>
<includedby refid="_i_display_gamma_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDisplayGamma.h</includedby>
<includedby refid="_i_display_gamut_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDisplayGamut.h</includedby>
<includedby refid="_i_desktops_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDesktops.h</includedby>
<includedby refid="_i_displays_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDisplays.h</includedby>
<includedby refid="_i_g_p_u_auto_tuning_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUAutoTuning.h</includedby>
<includedby refid="_i_g_p_u_manual_fan_tuning_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUManualFanTuning.h</includedby>
<includedby refid="_i_g_p_u_manual_power_tuning_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUManualPowerTuning.h</includedby>
<includedby refid="_i_display_settings_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDisplaySettings.h</includedby>
<includedby refid="_i_g_p_u_manual_g_f_x_tuning_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUManualGFXTuning.h</includedby>
<includedby refid="_i_g_p_u_manual_v_r_a_m_tuning_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUManualVRAMTuning.h</includedby>
<includedby refid="_i3_d_settings_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/I3DSettings.h</includedby>
<includedby refid="_i_g_p_u_tuning_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUTuning.h</includedby>
<includedby refid="_i_performance_monitoring_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IPerformanceMonitoring.h</includedby>
<includedby refid="_i_g_p_u_preset_tuning_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUPresetTuning.h</includedby>
<includedby refid="_i_g_p_u_tuning_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUTuning.h</includedby>
<includedby refid="_i_power_tuning_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IPowerTuning.h</includedby>
<includedby refid="_i_display_settings_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDisplaySettings.h</includedby>
<includedby refid="_i_g_p_u_tuning1_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUTuning1.h</includedby>
<includedby refid="_i_performance_monitoring_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IPerformanceMonitoring.h</includedby>
<includedby refid="_i_smart_access_memory_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/ISmartAccessMemory.h</includedby>
<includedby refid="_i_displays_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDisplays.h</includedby>
<incdepgraph>
<node id="5">
<label>stdint.h</label>
Expand Down
2 changes: 1 addition & 1 deletion SDKDoc/xml/_i_changed_event_8h.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<compoundname>IChangedEvent.h</compoundname>
<includes refid="_a_d_l_x_defines_8h" local="yes">ADLXDefines.h</includes>
<includedby refid="_i3_d_settings_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/I3DSettings.h</includedby>
<includedby refid="_i_displays_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDisplays.h</includedby>
<includedby refid="_i_g_p_u_tuning_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUTuning.h</includedby>
<includedby refid="_i_power_tuning_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IPowerTuning.h</includedby>
<includedby refid="_i_displays_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDisplays.h</includedby>
<incdepgraph>
<node id="5">
<label>stdint.h</label>
Expand Down
6 changes: 3 additions & 3 deletions SDKDoc/xml/_i_collections_8h.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<compoundname>ICollections.h</compoundname>
<includes refid="_a_d_l_x_defines_8h" local="yes">ADLXDefines.h</includes>
<includedby refid="_i_desktops_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDesktops.h</includedby>
<includedby refid="_i_displays_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDisplays.h</includedby>
<includedby refid="_i_g_p_u_manual_fan_tuning_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUManualFanTuning.h</includedby>
<includedby refid="_i_g_p_u_tuning_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUTuning.h</includedby>
<includedby refid="_i_performance_monitoring_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IPerformanceMonitoring.h</includedby>
<includedby refid="_i_display_settings_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDisplaySettings.h</includedby>
<includedby refid="_i_g_p_u_tuning_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IGPUTuning.h</includedby>
<includedby refid="_i_system_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/ISystem.h</includedby>
<includedby refid="_i_displays_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IDisplays.h</includedby>
<includedby refid="_i_performance_monitoring_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/IPerformanceMonitoring.h</includedby>
<incdepgraph>
<node id="5">
<label>stdint.h</label>
Expand Down
2 changes: 1 addition & 1 deletion SDKDoc/xml/_i_system_8h.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<compoundname>ISystem.h</compoundname>
<includes refid="_a_d_l_x_defines_8h" local="yes">ADLXDefines.h</includes>
<includes refid="_i_collections_8h" local="yes">ICollections.h</includes>
<includedby refid="_i_system1_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/ISystem1.h</includedby>
<includedby refid="_a_d_l_x_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/ADLX.h</includedby>
<includedby refid="_i_system1_8h" local="yes">D:/AMD_Git/adlx_release/drivers/ADLX/SDK/Include/ISystem1.h</includedby>
<incdepgraph>
<node id="5">
<label>stdint.h</label>
Expand Down
10 changes: 1 addition & 9 deletions SDKDoc/xml/c__sync3_d_receive.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
<codeline><highlight class="normal"></highlight></codeline>
<codeline><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;SDK/ADLXHelper/Windows/C/ADLXHelper.h&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;SDK/Include/I3DSettings.h&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;SDK/Include/I3DSettings1.h&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;conio.h&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline><highlight class="normal"></highlight></codeline>
<codeline><highlight class="normal"></highlight><highlight class="comment">//<sp/>Block<sp/>event<sp/>to<sp/>verify<sp/>call<sp/>back</highlight><highlight class="normal"></highlight></codeline>
Expand All @@ -46,14 +45,7 @@
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Get<sp/>the<sp/>GPU<sp/>interface</highlight><highlight class="normal"></highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/>IADLXGPU*<sp/>gpu<sp/>=<sp/>NULL;</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/>p3DSettingsChangedEvent-&gt;pVtbl-&gt;GetGPU(p3DSettingsChangedEvent,<sp/>&amp;gpu);</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/>IADLX3DSettingsChangedEvent1*<sp/>p3DSettingsChangedEvent1<sp/>=<sp/>NULL;</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/>p3DSettingsChangedEvent-&gt;pVtbl-&gt;QueryInterface(p3DSettingsChangedEvent,<sp/>IID_IADLX3DSettingsChangedEvent1(),<sp/>&amp;p3DSettingsChangedEvent1);</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(p3DSettingsChangedEvent1<sp/>==<sp/>NULL)</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/>{</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>printf(</highlight><highlight class="stringliteral">&quot;3DSettingsChangedEvent1<sp/>not<sp/>supported\n&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline><highlight class="normal"></highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//RadeonSuperResolution<sp/>is<sp/>a<sp/>global<sp/>feature<sp/>(the<sp/>GPU<sp/>interface<sp/>is<sp/>NULL);<sp/>skip<sp/>printing<sp/>its<sp/>name</highlight><highlight class="normal"></highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!p3DSettingsChangedEvent-&gt;pVtbl-&gt;IsRadeonSuperResolutionChanged(p3DSettingsChangedEvent))</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/>{</highlight></codeline>
Expand Down
8 changes: 0 additions & 8 deletions SDKDoc/xml/cpp__sync3_d_receive.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
<codeline><highlight class="normal"></highlight></codeline>
<codeline><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;SDK/ADLXHelper/Windows/Cpp/ADLXHelper.h&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;SDK/Include/I3DSettings.h&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;SDK/Include/I3DSettings1.h&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;conio.h&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;iostream&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;string&gt;</highlight><highlight class="normal"></highlight></codeline>
Expand Down Expand Up @@ -122,13 +121,6 @@
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Get<sp/>3DSettings<sp/>service</highlight><highlight class="normal"></highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>IADLX3DSettingsServicesPtr<sp/>d3dSettingSrv;</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>g_ADLXHelp.GetSystemServices()-&gt;Get3DSettingsServices(&amp;d3dSettingSrv);</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>IADLX3DSettingsServices1Ptr<sp/>d3dSettingSrv1<sp/>(d3dSettingSrv);</highlight></codeline>
<codeline><highlight class="normal"></highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>IADLX3DSettingsChangedEvent1Ptr<sp/>p3DSettingsChangedEvent1(p3DSettingsChangedEvent);</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(p3DSettingsChangedEvent1<sp/>==<sp/></highlight><highlight class="keyword">nullptr</highlight><highlight class="normal">)</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::cout<sp/>&lt;&lt;<sp/></highlight><highlight class="stringliteral">&quot;3DSettingsChangedEvent1<sp/>not<sp/>supported&quot;</highlight><highlight class="normal"><sp/>&lt;&lt;<sp/>std::endl;</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline><highlight class="normal"></highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Get<sp/>the<sp/>GPU<sp/>interface</highlight><highlight class="normal"></highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>IADLXGPUPtr<sp/>gpu;</highlight></codeline>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#include "SDK/ADLXHelper/Windows/C/ADLXHelper.h"
#include "SDK/Include/I3DSettings.h"
#include "SDK/Include/I3DSettings1.h"
#include "conio.h"

// Block event to verify call back
Expand All @@ -24,14 +23,7 @@ adlx_bool ADLX_STD_CALL On3DSettingsChanged(IADLX3DSettingsChangedListener *pThi
// Get the GPU interface
IADLXGPU* gpu = NULL;
p3DSettingsChangedEvent->pVtbl->GetGPU(p3DSettingsChangedEvent, &gpu);

IADLX3DSettingsChangedEvent1* p3DSettingsChangedEvent1 = NULL;
p3DSettingsChangedEvent->pVtbl->QueryInterface(p3DSettingsChangedEvent, IID_IADLX3DSettingsChangedEvent1(), &p3DSettingsChangedEvent1);
if (p3DSettingsChangedEvent1 == NULL)
{
printf("3DSettingsChangedEvent1 not supported\n");
}


//RadeonSuperResolution is a global feature (the GPU interface is NULL); skip printing its name
if (!p3DSettingsChangedEvent->pVtbl->IsRadeonSuperResolutionChanged(p3DSettingsChangedEvent))
{
Expand Down
Loading

0 comments on commit d361234

Please sign in to comment.