<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>inamori</author_name>
  <author_url>https://blog.hatena.ne.jp/inamori/</author_url>
  <blog_title>inamori’s diary</blog_title>
  <blog_url>https://inamori.hateblo.jp/</blog_url>
  <categories>
    <anon>GPGPU</anon>
  </categories>
  <description>全面的に書き直し。 整数の精度 整数のデータを入力したかったが、よくわからなかった。 検索しても出てこないし。 仕方がないので、floatの配列をGPUに送って、キャストすることにした。 const int nWidth = 4; const int nHeight = 2; const int nData = nWidth * nHeight * 4; float *data = new float[nData]; const int nRep = 12;配列に1,2,3,…と代入して、 for(int i = 0; i data[i*4] = (float)(i + 1); }シェーダープ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20080313%2Fp1&quot; title=&quot;GPGPUで整数計算（4） - inamori’s diary&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-03-13 00:00:00</published>
  <title>GPGPUで整数計算（4）</title>
  <type>rich</type>
  <url>https://inamori.hateblo.jp/entry/20080313/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
