Skip to content

Instantly share code, notes, and snippets.

View omochi's full-sized avatar
🏠
Working from home

omochimetaru omochi

🏠
Working from home
  • Qoncept, Inc
  • Yokohama
View GitHub Profile
class BracketQueryEncoder {
private result: [string, string][] = [];
encode(json: any): [string, string][] {
this.result = [];
this.encodeStep([], json);
return this.result;
}
encodeStep(path: string[], json: any) {

main

commit 0cd0cbc02adf2f794570cf102fde08089d7fdae2 (HEAD -> main, origin/main)
Merge: e65ae80172a 474aa2ed03a
Author: Doug Gregor <dgregor@apple.com>
Date:   Tue Jun 8 19:46:20 2021 -0700

    Merge pull request #37794 from DougGregor/isolated-parameters
    
import Foundation

enum E: Codable {
  case a(Int???)
}

let encoder = JSONEncoder()
encoder.outputFormatting = .prettyPrinted
let value: [E] = [
import Foundation
private class BundleToken {}
extension Bundle {
static var current: Bundle {
Bundle(for: BundleToken.self)
}
func localized(locale: Locale) -> Bundle? {
import WeaselRoll
enum Hoge: Equatable {
case c01(String)
case c02(String)
case c03(String)
case c04(String)
case c05(String)
case c06(String)
case c07(String)

slidenumber: true

Swiftの関数型の

実行時表現

わいわいswiftc

omochimetaru


textureExternal は使うな

UnityのAndroid向け開発で、GL_OES_EGL_image_externalを使う時の注意。

マニュアルの以下に、 textureExternal を使えと書いてあるが、 これは罠で、動かなくなるので使ってはならない。

https://docs.unity3d.com/2019.4/Documentation/Manual/SL-GLSLShaderPrograms.html

textureExternal は、ES20ターゲットでもES30ターゲットでも、どちらもtexture2Dに変換される。