Skip to content

Instantly share code, notes, and snippets.

View patskovn's full-sized avatar

Nikita patskovn

View GitHub Profile
struct VertexIn {
simd_float4 position;
simd_float4 color;
};
struct VertexOut {
simd_float4 position [[position]];
simd_float4 color;
};
#include <metal_stdlib>
using namespace metal;
typedef enum ShaderGradientInputIndex
{
ShaderGradientInputIndexVertices = 0,
ShaderGradientInputIndexModelConstants,
ShaderGradientInputIndexSceneConstants
} ShaderGradientInputIndex;
@patskovn
patskovn / NotWorkingBindableState.swift
Last active September 7, 2021 10:48
Text is always "Title is empty"
import SwiftUI
import ComposableArchitecture
struct TestState: Equatable {
@BindableState var value = ""
}
enum TestAction: BindableAction {
case binding(BindingAction<TestState>)
//
// EmptySwiftUIModifiers.swift
// Architectory
//
// Created by Nikita Patskov on 09.09.2020.
//
import SwiftUI
struct TestView: View {