<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ikatsui_pengin</author_name>
  <author_url>https://blog.hatena.ne.jp/ikatsui_pengin/</author_url>
  <blog_title>アヒルのある日</blog_title>
  <blog_url>https://blog.ahiru.co.jp/</blog_url>
  <categories>
  </categories>
  <description>こんにちは！いかついプログラマです。 今回は、WPFアプリケーションでShaderEffectに対してSamplerとしてVisualを渡す方法を紹介します。 シェーダー まずは使用するシェーダーです。 入力サンプラーを2つ使用するため、サンプラーレジスタ(s0、s1）を宣言します。 sampler2D input : register(s0); sampler2D mask : register(s1); float4 main(float2 uv : TEXCOORD) : COLOR { float4 color = tex2D(input, uv); float4 maskColor …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.ahiru.co.jp%2Fentry%2F2023%2F10%2F13%2F070000&quot; title=&quot;【WPF】VisualをShaderEffectにSamplerとして渡す - アヒルのある日&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/i/ikatsui_pengin/20231010/20231010232034.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-10-13 07:00:00</published>
  <title>【WPF】VisualをShaderEffectにSamplerとして渡す</title>
  <type>rich</type>
  <url>https://blog.ahiru.co.jp/entry/2023/10/13/070000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
