Skip to content

Commit

Permalink
Cargo doc auto deployment 2024-05-05 14:59:56.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigocfd committed May 5, 2024
1 parent cfa9ab4 commit b7b87ba
Show file tree
Hide file tree
Showing 5 changed files with 116 additions and 9 deletions.
2 changes: 1 addition & 1 deletion search-index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion search.desc/winsafe/winsafe-desc-3-.js

Large diffs are not rendered by default.

78 changes: 78 additions & 0 deletions src/winsafe/dxgi/com_interfaces/idxgiswapchain.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,45 @@
<a href="#151" id="151">151</a>
<a href="#152" id="152">152</a>
<a href="#153" id="153">153</a>
<a href="#154" id="154">154</a>
<a href="#155" id="155">155</a>
<a href="#156" id="156">156</a>
<a href="#157" id="157">157</a>
<a href="#158" id="158">158</a>
<a href="#159" id="159">159</a>
<a href="#160" id="160">160</a>
<a href="#161" id="161">161</a>
<a href="#162" id="162">162</a>
<a href="#163" id="163">163</a>
<a href="#164" id="164">164</a>
<a href="#165" id="165">165</a>
<a href="#166" id="166">166</a>
<a href="#167" id="167">167</a>
<a href="#168" id="168">168</a>
<a href="#169" id="169">169</a>
<a href="#170" id="170">170</a>
<a href="#171" id="171">171</a>
<a href="#172" id="172">172</a>
<a href="#173" id="173">173</a>
<a href="#174" id="174">174</a>
<a href="#175" id="175">175</a>
<a href="#176" id="176">176</a>
<a href="#177" id="177">177</a>
<a href="#178" id="178">178</a>
<a href="#179" id="179">179</a>
<a href="#180" id="180">180</a>
<a href="#181" id="181">181</a>
<a href="#182" id="182">182</a>
<a href="#183" id="183">183</a>
<a href="#184" id="184">184</a>
<a href="#185" id="185">185</a>
<a href="#186" id="186">186</a>
<a href="#187" id="187">187</a>
<a href="#188" id="188">188</a>
<a href="#189" id="189">189</a>
<a href="#190" id="190">190</a>
<a href="#191" id="191">191</a>
<a href="#192" id="192">192</a>
</pre></div><pre class="rust"><code><span class="attr">#![allow(non_camel_case_types, non_snake_case)]

</span><span class="kw">use </span><span class="kw">crate</span>::co;
Expand Down Expand Up @@ -253,6 +292,21 @@
))
}

<span class="doccomment">/// [`IDXGISwapChain::GetLastPresentCount`](https://learn.microsoft.com/en-us/windows/win32/api/dxgi/nf-dxgi-idxgiswapchain-getlastpresentcount)
/// method.
</span><span class="attr">#[must_use]
</span><span class="kw">fn </span>GetLastPresentCount(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; HrResult&lt;u32&gt; {
<span class="kw">let </span><span class="kw-2">mut </span>count = u32::default();
ok_to_hrresult(
<span class="kw">unsafe </span>{
(vt::&lt;IDXGISwapChainVT&gt;(<span class="self">self</span>).GetLastPresentCount)(
<span class="self">self</span>.ptr(),
<span class="kw-2">&amp;mut </span>count,
)
},
).map(|<span class="kw">_</span>| count)
}

<span class="doccomment">/// [`IDXGISwapChain::Present`](https://learn.microsoft.com/en-us/windows/win32/api/dxgi/nf-dxgi-idxgiswapchain-present)
/// method.
</span><span class="kw">fn </span>Present(<span class="kw-2">&amp;</span><span class="self">self</span>,
Expand All @@ -270,6 +324,30 @@
)
}

<span class="doccomment">/// [`IDXGISwapChain::ResizeBuffers`](https://learn.microsoft.com/en-us/windows/win32/api/dxgi/nf-dxgi-idxgiswapchain-resizebuffers)
/// method.
</span><span class="kw">fn </span>ResizeBuffers(<span class="kw-2">&amp;</span><span class="self">self</span>,
buffer_count: u32,
width: u32,
height: u32,
new_format: co::DXGI_FORMAT,
swap_chain_flags: co::DXGI_SWAP_CHAIN_FLAG,
) -&gt; HrResult&lt;()&gt;
{
ok_to_hrresult(
<span class="kw">unsafe </span>{
(vt::&lt;IDXGISwapChainVT&gt;(<span class="self">self</span>).ResizeBuffers)(
<span class="self">self</span>.ptr(),
buffer_count,
width,
height,
new_format.raw(),
swap_chain_flags.raw(),
)
},
)
}

<span class="doccomment">/// [`IDXGISwapChain::ResizeTarget`](https://learn.microsoft.com/en-us/windows/win32/api/dxgi/nf-dxgi-idxgiswapchain-resizetarget)
/// method.
</span><span class="kw">fn </span>ResizeTarget(<span class="kw-2">&amp;</span><span class="self">self</span>,
Expand Down
Loading

0 comments on commit b7b87ba

Please sign in to comment.