Skip to content

Instantly share code, notes, and snippets.

@ongaeshi
Created January 22, 2025 16:57
Show Gist options
  • Save ongaeshi/5c45df993da5491830ebb1c9abb265f9 to your computer and use it in GitHub Desktop.
Save ongaeshi/5c45df993da5491830ebb1c9abb265f9 to your computer and use it in GitHub Desktop.
require 'processing'
using Processing
# エラーメッセージからは #version は警告で、texcoord__ や color__ の命名規則に "__" が使われているのが原因?
#
# terminate called after throwing an instance of 'Rucy::RubyException'
# what(): src/shader_source.cpp:49: WARNING: 0:1: '' : #version directive missing
# ERROR: 0:9: 'texcoord__' : two consecutive underscores are reserved for future use
# ERROR: 0:10: 'color__' : two consecutive underscores are reserved for future use
#
# https://github.com/xord/rays/blob/cc5cb4972c2cb1cf7af97eab170d4cdbf52fee0c/src/shader.cpp#L113-L117C12 辺り?
#
draw do
end
require 'processing'
using Processing
# 実行するとウィンドウが何も表示されずに終了
setup do
end
@ongaeshi
Copy link
Author

https://github.com/xord/rays/blob/cc5cb4972c2cb1cf7af97eab170d4cdbf52fee0c/src/shader.cpp#L113-L117C12 辺り?コードに似たような部分が何カ所かあるので違うかも。

@ongaeshi
Copy link
Author

GLView Extentions Viewer で私のマシンの GPU を確認しました。Intel CPU 内蔵の GPU であまり新しいものではないです。グラフィックカードによってエラーになるケースがあるのかもしれません。

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment