public static Vk.ShaderModule CreateShaderModule(Vk.Device device, byte[] bytecode) { Vk.ShaderModuleCreateInfo moduleInfo = new Vk.ShaderModuleCreateInfo(); moduleInfo.CodeBytes = bytecode; moduleInfo.CodeSize = new UIntPtr((uint)bytecode.Length); return(device.CreateShaderModule(moduleInfo)); }
public ShaderModule CreateShaderModule(byte[] shaderCode, uint flags = 0, AllocationCallbacks allocator = null) { ShaderModuleCreateInfo createInfo = new ShaderModuleCreateInfo { CodeBytes = shaderCode, Flags = flags }; return(CreateShaderModule(createInfo, allocator)); }